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

19 lines
453 B
PHP
Raw Permalink Normal View History

2024-03-28 09:51:45 +03:00
<?php
use common\components\Migration\MigrationWithDefaultOptions;
class m160620_111519_add_village_id extends MigrationWithDefaultOptions
{
public function safeUp()
{
$this->addColumn('{{%address_data}}','village_id', $this->integer());
Yii::$app->db->schema->refresh();
}
public function safeDown()
{
$this->dropColumn('{{%address_data}}','village_id');
Yii::$app->db->schema->refresh();
}
}