mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Добавлено поле username в модель Account, скорретирована форма входа и её тесты
This commit is contained in:
15
console/migrations/m160104_150157_account_extended_info.php
Normal file
15
console/migrations/m160104_150157_account_extended_info.php
Normal 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');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user