Blame view

console/migrations/m160815_101441_add_name_to_brand.php 275 Bytes
52aea36a   Administrator   big commti
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
  
  use yii\db\Migration;
  
  class m160815_101441_add_name_to_brand extends Migration
  {
      public function up()
      {
          $this->addColumn('brand', 'name', $this->string(255));
      }
  
      public function down()
      {
          $this->dropColumn('brand', 'name');
      }
  }