Blame view

console/migrations/m160216_180149_tean_date_change.php 437 Bytes
14a09168   Alex Savenko   init commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <?php

  

  use yii\db\Migration;

  

  class m160216_180149_tean_date_change extends Migration

  {

      public function up()

      {

          $this->dropColumn('team', 'experience_from');

          $this->addColumn('team', 'experience_from', $this->integer());

      }

  

      public function down()

      {

          $this->dropColumn('team', 'experience_from');

          $this->addColumn('team', 'experience_from', $this->timestamp());

      }

  }