Blame view

console/migrations/m160312_143616_project_add_field_total_budget.php 315 Bytes
cda2c1c9   Administrator   add yii jquery
1
2
3
4
5
6
7
8
  <?php
  
  use yii\db\Migration;
  
  class m160312_143616_project_add_field_total_budget extends Migration
  {
      public function up()
      {
8c448b56   Administrator   add yii jquery
9
          $this->addColumn('{{%project}}', 'total_budget', $this->float());
cda2c1c9   Administrator   add yii jquery
10
11
12
13
14
15
16
17
      }
  
      public function down()
      {
          $this->dropColumn('{{%project}}', 'total_budget');
  
      }
  }