Blame view

console/migrations/m180403_091940_alter_table_page.php 414 Bytes
c237629a   Anastasia   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  <?php
  
  use yii\db\Migration;
  
  /**
   * Class m180403_091940_alter_table_page
   */
  class m180403_091940_alter_table_page extends Migration
  {
      /**
       * {@inheritdoc}
       */
      public function safeUp()
      {
          $this->addColumn('page', 'image_id', $this->integer());
      }
  
      /**
       * {@inheritdoc}
       */
      public function safeDown()
      {
          $this->dropColumn('page', 'image_id');
      }
      
  }