Blame view

console/migrations/m160425_121151_add_achievement_to_job.php 411 Bytes
eb780746   Yarik   test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  <?php
  
  use yii\db\Migration;
  
  /**
   * Handles adding achievement to table `job`.
   */
  class m160425_121151_add_achievement_to_job extends Migration
  {
      /**
       * @inheritdoc
       */
      public function up()
      {
          $this->addColumn('job', 'achievement', $this->string());
      }
  
      /**
       * @inheritdoc
       */
      public function down()
      {
          $this->dropColumn('job', 'achievement');
      }
  }