add resume

This commit is contained in:
iIronside
2022-11-03 17:46:36 +03:00
parent 81a3804685
commit 5ce34fe605
19 changed files with 830 additions and 43 deletions

View File

@ -0,0 +1,32 @@
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%resume_template}}`.
*/
class m221017_112513_create_resume_template_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%resume_template}}', [
'id' => $this->primaryKey(),
'title' => $this->string()->notNull(),
'created_at' => $this->dateTime(),
'updated_at' => $this->dateTime(),
'status' => $this->integer(2)->defaultValue(1),
'template_body' => $this->text(),
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropTable('{{%resume_template}}');
}
}