Blame view

console/migrations/m160317_143914_project_state_add.php 350 Bytes
14a09168   Alex Savenko   init commit
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');

      }

  

  }