Blame view

console/migrations/m160309_124241_add_vacancy_status.php 309 Bytes
b3ef6f91   Yarik   test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
  
  use yii\db\Migration;
  
  class m160309_124241_add_vacancy_status extends Migration
  {
      public function up()
      {
          $this->addColumn('{{%vacancy}}', 'status', $this->integer()->defaultValue(1));
      }
  
      public function down()
      {
          $this->dropColumn('{{%vacancy}}', 'status');
      }
  }