Blame view

console/migrations/m160209_104201_add_field_project_budget.php 313 Bytes
84ebac3d   Yarik   test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  <?php
  
  use yii\db\Migration;
  
  class m160209_104201_add_field_project_budget extends Migration
  {
      public function up()
      {
          $this->addColumn('{{%project}}', 'contractual', $this->smallInteger());
      }
  
      public function down()
      {
          $this->dropColumn('{{%project}}', 'contractual');
      }
  }