You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
585 B

<?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');
}
}