Blame view

backend/components/imagemanager/migrations/m170223_113221_addBlameableBehavior.php 499 Bytes
dd15bb0c   alex   Merge branches 'c...
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 m170223_113221_addBlameableBehavior extends Migration
  {
      public function up()
      {
          $this->addColumn('ImageManager', 'createdBy', $this->integer(10)->unsigned()->null()->defaultValue(null));
          $this->addColumn('ImageManager', 'modifiedBy', $this->integer(10)->unsigned()->null()->defaultValue(null));
      }
  
      public function down()
      {
          echo "m170223_113221_addBlameableBehavior cannot be reverted.\n";
  
          return false;
      }
  }