Blame view

console/migrations/m171109_143936_add_time_column_to_feedback_table.php 416 Bytes
735ae87f   Timur Kastemirov   sending email
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 time to table `feedback`.
   */
  class m171109_143936_add_time_column_to_feedback_table extends Migration
  {
      /**
       * @inheritdoc
       */
      public function up()
      {
          $this->addColumn('feedback', 'time', $this->string());
      }
  
      /**
       * @inheritdoc
       */
      public function down()
      {
          $this->dropColumn('feedback', 'time');
      }
  }