Blame view

console/migrations/m180906_190153_customer_add_column_post.php 425 Bytes
9d70b8a6   alex   1) добавил новые ...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php
  
  use yii\db\Migration;
  
  /**
   * Class m180906_190153_customer_add_column_post
   */
  class m180906_190153_customer_add_column_post extends Migration
  {
  
      public function up()
      {
  		$this->addColumn('customer','post_address',
  			$this->string(255)
  				->comment("Официальный почтовый адрес"));
      }
  
      public function down()
      {
         $this->dropColumn('customer','post_address');
      }
  
  }