Blame view

console/migrations/m160331_132149_slider.php 593 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
  <?php

  

  use yii\db\Migration;

  

  class m160331_132149_slider extends Migration

  {

      public function up()

      {

          $this->createTable('{{%slider}}', [

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

              'speed' => $this->integer(4),

              'duration' => $this->integer(4),

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

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

              'width' => $this->integer(4),

              'height' => $this->integer(4),

          ]);

      }

  

      public function down()

      {

          $this->dropTable('{{%slider}}');

      }

  

  

  }