mirror of
https://github.com/elyby/accounts.git
synced 2024-11-09 23:12:20 +05:30
16 lines
380 B
PHP
16 lines
380 B
PHP
<?php
|
|
|
|
use console\db\Migration;
|
|
|
|
class m180708_155425_extends_locale_field extends Migration {
|
|
|
|
public function safeUp() {
|
|
$this->alterColumn('{{%accounts}}', 'lang', $this->string()->notNull()->defaultValue('en'));
|
|
}
|
|
|
|
public function safeDown() {
|
|
$this->alterColumn('{{%accounts}}', 'lang', $this->string(5)->notNull()->defaultValue('en'));
|
|
}
|
|
|
|
}
|