mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-02-14 19:11:49 +00:00
33 lines
608 B
PHP
33 lines
608 B
PHP
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
class m171108_113652_add_token_to_user extends Migration
|
|
{
|
|
public function safeUp()
|
|
{
|
|
$this->addColumn(\app\models\User::tableName(), "token", $this->string());
|
|
}
|
|
|
|
public function safeDown()
|
|
{
|
|
echo "m171108_113652_add_token_to_user cannot be reverted.\n";
|
|
|
|
return false;
|
|
}
|
|
|
|
/*
|
|
// Use up()/down() to run migration code without a transaction.
|
|
public function up()
|
|
{
|
|
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
echo "m171108_113652_add_token_to_user cannot be reverted.\n";
|
|
|
|
return false;
|
|
}
|
|
*/
|
|
}
|