Добавлено поле username в модель Account, скорретирована форма входа и её тесты

This commit is contained in:
ErickSkrauch
2016-01-04 18:31:14 +03:00
parent c6a6f35be6
commit 45c31dfbbe
5 changed files with 76 additions and 35 deletions

View File

@@ -0,0 +1,15 @@
<?php
use console\db\Migration;
class m160104_150157_account_extended_info extends Migration {
public function safeUp() {
$this->addColumn('{{%accounts}}', 'username', $this->string()->unique()->notNull() . ' AFTER `uuid`');
}
public function safeDown() {
$this->dropColumn('{{%accounts}}', 'username');
}
}