Blame view

migrations/m160927_124151_add_status_column.php 502 Bytes
08453431   Yarik   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <?php
      
      use yii\db\Migration;
      
      class m160927_124151_add_status_column extends Migration
      {
          
          public function up()
          {
              $this->addColumn('language', 'status', $this->boolean()
                                                          ->notNull()
                                                          ->defaultValue(false));
          }
          
          public function down()
          {
              $this->dropColumn('language', 'status');
          }
      }