Blame view

console/migrations/m170815_141403_create_price_upload_table.php 526 Bytes
950817c6   Alex Savenko   first commit
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
28
29
  <?php
  
  use yii\db\Migration;
  
  /**
   * Handles the creation of table `price_upload`.
   */
  class m170815_141403_create_price_upload_table extends Migration
  {
      /**
       * @inheritdoc
       */
      public function up()
      {
          $this->createTable('price_upload', [
              'sku' => $this->string(),
              'price' => $this->decimal(),
              'price_old' => $this->decimal(),
          ]);
      }
  
      /**
       * @inheritdoc
       */
      public function down()
      {
          $this->dropTable('price_upload');
      }
  }