Blame view

console/migrations/m171129_124331_add_subject_column_to_feedback_table.php 431 Bytes
dec66dbe   Timur Kastemirov   feedback subject
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 subject to table `feedback`.
   */
  class m171129_124331_add_subject_column_to_feedback_table extends Migration
  {
      /**
       * @inheritdoc
       */
      public function up()
      {
          $this->addColumn('feedback', 'subject', $this->string(255));
      }
  
      /**
       * @inheritdoc
       */
      public function down()
      {
          $this->dropColumn('feedback', 'subject');
      }
  }