mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-10 11:56:50 +01:00
17 lines
275 B
PHP
17 lines
275 B
PHP
<?php
|
|
|
|
use yii\db\Migration;
|
|
|
|
class m161231_183339_add_text_to_task extends Migration
|
|
{
|
|
public function safeUp()
|
|
{
|
|
$this->addColumn('task', 'text', $this->text());
|
|
}
|
|
|
|
public function safeDown()
|
|
{
|
|
$this->dropColumn('task', 'text');
|
|
}
|
|
}
|