mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-05 01:24:03 +01:00
17 lines
308 B
PHP
17 lines
308 B
PHP
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
class m161028_190404_pin_null extends Migration
|
|
{
|
|
public function safeUp()
|
|
{
|
|
$this->alterColumn('item', 'pin', $this->integer()->null());
|
|
}
|
|
|
|
public function safeDown()
|
|
{
|
|
$this->alterColumn('item', 'pin', $this->integer()->notNull());
|
|
}
|
|
}
|