20 lines
298 B
20 lines
298 B
7 years ago
|
<?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}}');
|
||
|
}
|
||
|
}
|