7 * Class m201102_055906_modify_status_table
9 class m201102_055906_modify_status_table extends Migration
14 public function safeUp()
16 $this->alterColumn(Status::tableName(), 'name', $this->string(100)->notNull()->unique()->comment('Состояние'));
22 public function safeDown()
24 echo "m201102_055906_modify_status_table revert don't need.\n";
30 // Use up()/down() to run migration code without a transaction.
36 public function down()
38 echo "m201102_055906_modify_status_table cannot be reverted.\n";