mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Добавлена поддержка запоминания языка для аккаунта
Обновлена минимальная версия Yii2 Удалено немного хлама от Yii2 Advanced Исправлены некоторые тесты
This commit is contained in:
17
console/migrations/m160512_194546_account_language.php
Normal file
17
console/migrations/m160512_194546_account_language.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
use console\db\Migration;
|
||||
|
||||
class m160512_194546_account_language extends Migration {
|
||||
|
||||
public function safeUp() {
|
||||
$this->addColumn('{{%accounts}}', 'lang', $this->string(5)->notNull()->defaultValue('en')->after('password_hash_strategy'));
|
||||
$this->dropColumn('{{%accounts}}', 'password_reset_token');
|
||||
}
|
||||
|
||||
public function safeDown() {
|
||||
$this->dropColumn('{{%accounts}}', 'lang');
|
||||
$this->addColumn('{{%accounts}}', 'password_reset_token', $this->string()->unique());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user