Egorka
6 years ago
23 changed files with 450 additions and 388 deletions
@ -0,0 +1,27 @@
|
||||
<?php |
||||
|
||||
use yii\db\Migration; |
||||
|
||||
/** |
||||
* Class m180822_182716_add_users_languages_fields |
||||
*/ |
||||
class m180822_182716_add_users_languages_fields extends Migration |
||||
{ |
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function safeUp() |
||||
{ |
||||
$this->addColumn('{{%users}}', 'backend_language', $this->string(10)); |
||||
$this->addColumn('{{%users}}', 'frontend_language', $this->string(10)); |
||||
} |
||||
|
||||
/** |
||||
* {@inheritdoc} |
||||
*/ |
||||
public function safeDown() |
||||
{ |
||||
$this->dropColumn('{{%users}}', 'backend_language'); |
||||
$this->dropColumn('{{%users}}', 'frontend_language'); |
||||
} |
||||
} |
Loading…
Reference in new issue