Blame view

migrations/m170721_133313_create_city_table.php 591 Bytes
a874d14e   Anastasia   stock
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  <?php
  
  use yii\db\Migration;
  
  /**
   * Handles the creation of table `city`.
   */
  class m170721_133313_create_city_table extends Migration
  {
      /**
       * @inheritdoc
       */
      public function up()
      {
          $this->createTable('city', [
              'id'        => $this->primaryKey(),
              'sort'      => $this->integer(),
              'status'     => $this->boolean()
                  ->defaultValue(true),
1b0b689c   Anastasia   stock map
20
              'coords'     => $this->string(),
a874d14e   Anastasia   stock
21
22
23
24
25
26
27
28
29
30
31
          ]);
      }
  
      /**
       * @inheritdoc
       */
      public function down()
      {
          $this->dropTable('city');
      }
  }