mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-04 17:14:01 +01:00
17 lines
320 B
PHP
17 lines
320 B
PHP
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
class m161210_210805_fix_user extends Migration
|
|
{
|
|
public function safeUp()
|
|
{
|
|
$this->addColumn('user', 'auth_token', $this->string()->defaultValue(null)->after('auth_key'));
|
|
}
|
|
|
|
public function safeDown()
|
|
{
|
|
$this->dropColumn('user', 'auth_token');
|
|
}
|
|
}
|