mirror of
https://github.com/janickiy/yii2-nomer
synced 2025-02-15 03:11:58 +00:00
28 lines
491 B
PHP
28 lines
491 B
PHP
|
<?php
|
||
|
|
||
|
use yii\db\Migration;
|
||
|
|
||
|
class m170529_160249_add_site_comment extends Migration
|
||
|
{
|
||
|
public function up()
|
||
|
{
|
||
|
$this->addColumn(\app\models\Site::tableName(), "comment", $this->string());
|
||
|
}
|
||
|
|
||
|
public function down()
|
||
|
{
|
||
|
$this->dropColumn(\app\models\Site::tableName(), "comment");
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
// Use safeUp/safeDown to run migration code within a transaction
|
||
|
public function safeUp()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function safeDown()
|
||
|
{
|
||
|
}
|
||
|
*/
|
||
|
}
|