Blame view

console/migrations/m160714_091034_rename_road_name.php 288 Bytes
a1e5908c   Yarik   Yarik
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php
  
  use yii\db\Migration;
  
  class m160714_091034_rename_road_name extends Migration
  {
      public function up()
      {
          $this->renameColumn('road', 'road_name', 'name');
      }
  
      public function down()
      {
          $this->renameColumn('road', 'name', 'road_name');
      
      }
  }