Blame view

console/migrations/m171123_142225_add_gallery_column_to_page_table.php 415 Bytes
088f364d   Timur Kastemirov   img from gallery ...
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
  <?php
  
  use yii\db\Migration;
  
  /**
   * Handles adding gallery to table `page`.
   */
  class m171123_142225_add_gallery_column_to_page_table extends Migration
  {
      /**
       * @inheritdoc
       */
      public function up()
      {
          $this->addColumn('page', 'gallery', $this->string(255));
      }
  
      /**
       * @inheritdoc
       */
      public function down()
      {
          $this->dropColumn('page', 'gallery');
      }
  }