Commit 001496b0 by san58

добавил миграцию

1 parent ff0b93b1
<?php
use yii\db\Migration;
/**
* Class m210606_170159_add_host_status
*/
class m210606_170159_add_host_status extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%host}}', 'status', $this->tinyInteger(1)->notNull()->defaultValue(0)->comment('Статус'));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('{{%host}}', 'status');
}
}
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!