26 lines
405 B
26 lines
405 B
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
/**
|
|
* Class m191111_102644_create_table_province
|
|
*/
|
|
class m191204_092644_rename_backend_user extends Migration
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function up()
|
|
{
|
|
$sql = 'alter table user rename to auth_user ';
|
|
$this->execute($sql);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function down()
|
|
{
|
|
return true;
|
|
}
|
|
}
|