Closed dyar74 closed 9 years ago
I have done create dual migration.. for older version of yii (<2.0.6)
Thanks!
You have some mistake in migrations: line 21 : now - ]), $tableOptions); => work : ], $tableOptions); in main file. and in old folder: <?php use yii\db\Schema; use yii\db\Migration; class m151027_142811_create_route_table extends Migration { public function up() { <?php use yii\db\Schema; use yii\db\Migration; class m151024_072453_create_route_table extends Migration { public function up() { may be not correct git merge :)
kk.. yes I have repaired it .. thx
work when replace on : $tableOptions = null; $this->createTable('{{%route}}', [ 'name' => Schema::TYPE_STRING . '(64) NOT NULL', 'alias' => Schema::TYPE_STRING . '(64) NOT NULL', 'type' => Schema::TYPE_STRING . '(64) NOT NULL', 'status' => Schema::TYPE_SMALLINT . ' NOT NULL', 'PRIMARY KEY (name)' ], $tableOptions);
But I not set status default value to 1.