mirror of
https://github.com/elyby/accounts.git
synced 2024-11-27 01:02:06 +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');
|
|
}
|
|
|
|
}
|