Blame view

console/migrations/m160321_132138_project_add_status.php 325 Bytes
14a09168   Alex Savenko   init commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php

  

  use yii\db\Migration;

  

  class m160321_132138_project_add_status extends Migration

  {

      public function up()

      {

          $this->addColumn('{{%project}}', 'hidden', $this->integer()->defaultValue(0));

      }

  

      public function down()

      {

          $this->dropColumn('{{%project}}', 'hidden');

      }

  }