mirror of
https://github.com/elyby/accounts.git
synced 2024-11-09 23:12:20 +05:30
16 lines
381 B
PHP
16 lines
381 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m160806_144759_account_rules_agreement_version extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->addColumn('{{%accounts}}', 'rules_agreement_version', $this->smallInteger()->unsigned()->after('status'));
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->dropColumn('{{%accounts}}', 'rules_agreement_version');
|
|
}
|
|
|
|
}
|