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.
 
 
 
 
 

19 lines
298 B

<?php
use yii\db\Migration;
/**
* Class m180107_203344_rename_user_table
*/
class m180107_203344_rename_user_table extends Migration
{
public function up()
{
$this->renameTable('{{%user}}', '{{%users}}');
}
public function down()
{
$this->renameTable('{{%users}}', '{{%user}}');
}
}