Blame view

console/migrations/m160920_193158_add_isEvent_to_event.php 454 Bytes
c361f574   Administrator   big commti
1
2
3
4
  <?php
  
  use yii\db\Migration;
  
37415bee   Administrator   big commti
5
  class m160920_193158_add_isEvent_to_event extends Migration
c361f574   Administrator   big commti
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  {
      public function up()
      {
          $this->addColumn('event', 'is_event', $this->boolean());
      }
  
      public function down()
      {
          $this->dropColumn('event', 'is_event');
      }
  
      /*
      // Use safeUp/safeDown to run migration code within a transaction
      public function safeUp()
      {
      }
  
      public function safeDown()
      {
      }
      */
  }