Merge pull request #90 from apuc/add_a_test_task_completion_date_to_user_card
Add a test task completion date to user card
This commit is contained in:
31
console/migrations/m220309_134047_create_test_task_table.php
Normal file
31
console/migrations/m220309_134047_create_test_task_table.php
Normal file
@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
use yii\db\Migration;
|
||||
|
||||
/**
|
||||
* Handles the creation of table `{{%test_task}}`.
|
||||
*/
|
||||
class m220309_134047_create_test_task_table extends Migration
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeUp()
|
||||
{
|
||||
$this->createTable('{{%test_task}}', [
|
||||
'id' => $this->primaryKey(),
|
||||
'description' => $this->string(500),
|
||||
'link' => $this->string(255),
|
||||
'level' => $this->integer(1)->defaultValue(1),
|
||||
'status' => $this->integer(1),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function safeDown()
|
||||
{
|
||||
$this->dropTable('{{%test_task}}');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user