guild/console/migrations/m230123_084421_create_mark_table.php

29 lines
477 B
PHP
Raw Permalink Normal View History

2023-01-23 17:50:38 +03:00
<?php
use yii\db\Migration;
/**
* Handles the creation of table `{{%mark}}`.
*/
class m230123_084421_create_mark_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->createTable('{{%mark}}', [
'id' => $this->primaryKey(),
'title' => $this->string()
]);
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropTable('{{%mark}}');
}
}