Logo white

Administrator / test_3

Sign in
  • Sign in
  • Project
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • test_3
  • console
  • migrations
  • m160210_101931_country.php
  • test
    02524a34
    Yarik authored
    2016-02-10 12:37:16 +0200  
    Browse Code ยป
m160210_101931_country.php 443 Bytes
Edit Raw Blame History
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?php

use yii\db\Migration;

class m160210_101931_country extends Migration
{
    public function up()
    {
        $this->createTable('{{%country}}', [
            'country_id' => $this->primaryKey(),
            'oid' => $this->integer(),
            'country_name' => $this->string(),
            'country_name_en' => $this->string(),
        ]);
    }

    public function down()
    {
        $this->dropTable('{{%country}}');
    }

}