Logo white

Alex Savenko / proektant

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • proektant
  • console
  • migrations
  • m160317_143914_project_state_add.php
  • init commit
    14a09168
    Alex Savenko authored
    2017-02-02 16:39:23 +0200  
    Browse Code ยป
m160317_143914_project_state_add.php 350 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?php

use yii\db\Migration;

class m160317_143914_project_state_add extends Migration
{
    public function up()
    {
        $this->addColumn('{{%comment_project}}', 'state', $this->integer()->notNull()->defaultValue(1));
    }

    public function down()
    {
       $this->dropColumn('{{%comment_project}}', 'state');
    }

}