Blame view

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

  

  use yii\db\Migration;

  

  class m160312_143616_project_add_field_total_budget extends Migration

  {

      public function up()

      {

          $this->addColumn('{{%project}}', 'total_budget', $this->float());

      }

  

      public function down()

      {

          $this->dropColumn('{{%project}}', 'total_budget');

  

      }

  }