Blame view

console/migrations/m171205_114149_add_promocode_column_to_feedback_table.php 556 Bytes
cab7e1c6   Timur Kastemirov   mail sending
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
26
27
  <?php
  
  use yii\db\Migration;
  
  /**
   * Handles adding promocode to table `feedback`.
   */
  class m171205_114149_add_promocode_column_to_feedback_table extends Migration
  {
      /**
       * @inheritdoc
       */
      public function up()
      {
          $this->addColumn('feedback', 'promocode', $this->string(255));
          $this->addColumn('feedback', 'oplata', $this->string(150));
      }
  
      /**
       * @inheritdoc
       */
      public function down()
      {
          $this->dropColumn('feedback', 'promocode');
          $this->dropColumn('feedback', 'oplata');
      }
  }