Blame view

console/migrations/m160412_133944_create_seo_category.php 616 Bytes
4253cbec   root   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
30
  <?php

  

  use yii\db\Migration;

  

  /**

   * Handles the creation for table `seo_category`.

   */

  class m160412_133944_create_seo_category extends Migration

  {

      /**

       * @inheritdoc

       */

      public function up()

      {

          $this->createTable('seo_category', [

              'seo_category_id' => $this->primaryKey(),

              'name' => $this->string(),

              'controller' => $this->string(100),

              'status' => $this->smallInteger(1),

          ]);

      }

  

      /**

       * @inheritdoc

       */

      public function down()

      {

          $this->dropTable('seo_category');

      }

  }