portal.mkgtu.ru/common/migrations/db/m211215_131121_remove_code_...

26 lines
395 B
PHP
Raw Normal View History

2024-03-28 09:51:45 +03:00
<?php
use common\components\Migration\MigrationWithDefaultOptions;
class m211215_131121_remove_code_column extends MigrationWithDefaultOptions
{
public function safeUp()
{
$this->dropColumn('{{%bachelor_preferences}}', 'code');
}
public function safeDown()
{
$this->addColumn('{{%bachelor_preferences}}', 'code', $this->string());
}
}