You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
455 B

<?php
use yii\db\Migration;
/**
* Class m180914_163138_add_modules_system_field
*/
class m180914_163138_add_modules_system_field extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%modules}}', 'system', $this->integer(1)->defaultValue(0));
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('{{%modules}}', 'system');
}
}