Blame view

console/migrations/m170928_095137_add_column_to_image_table.php 373 Bytes
6af5dbe3   Alexey Boroda   -Admin gallery ready
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
      
      use yii\db\Migration;
      
      class m170928_095137_add_column_to_image_table extends Migration
      {
          public function safeUp()
          {
              $this->addColumn('ImageManager', 'gallery', $this->boolean());
          }
          
          public function safeDown()
          {
              $this->dropColumn('ImageManager', 'gallery');
          }
      }