Blame view

console/migrations/m160202_084703_specialization.php 525 Bytes
14a09168   Alex Savenko   init commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?php

  

  use yii\db\Migration;

  

  class m160202_084703_specialization extends Migration

  {

      public function up()

      {

          $tableOptions = null;

  

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

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

              'specialization_pid' => $this->integer(),

              'specialization_name' => $this->string(255)->notNull()

          ], $tableOptions);

  

      }

  

      public function down()

      {

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

      }

  }