Blame view

console/migrations/m160411_215739_create_seo.php 649 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
31
32
33
  <?php

  

  use yii\db\Migration;

  

  /**

   * Handles the creation for table `seo`.

   */

  class m160411_215739_create_seo extends Migration

  {

      /**

       * @inheritdoc

       */

      public function up()

      {

          $this->createTable('seo', [

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

              'url'=> $this->string()->notNull(),

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

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

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

              'seo_text'=> $this->text(),

  

          ]);

      }

  

      /**

       * @inheritdoc

       */

      public function down()

      {

          $this->dropTable('seo');

      }

  }