Blame view

console/migrations/m160217_093704_add_field_geography_user_info.php 310 Bytes
f1f3595c   Yarik   test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
  
  use yii\db\Migration;
  
  class m160217_093704_add_field_geography_user_info extends Migration
  {
      public function up()
      {
          $this->addColumn('{{%user_info}}', 'geography', $this->text());
      }
  
      public function down()
      {
          $this->dropColumn('{{%user_info}}', 'geography');
      }
  }