Blame view

backend/components/noam148/imagemanager/migrations/m170223_113221_addBlameableBehavior.php 457 Bytes
a8aa0f7d   alex   Add new noam148 m...
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;
  	}
  }