Вход Регистрация
Файл: src/database/migrations/2016_04_14_191352_create_countries_table.php
Строк: 36
<?php

use IlluminateDatabaseMigrationsMigration;
use 
IlluminateDatabaseSchemaBlueprint;

class 
CreateCountriesTable extends Migration {

    
/**
     * Run the migrations.
     *
     * @return void
     */
    
public function up()
    {
        
Schema::create('Countries', function(Blueprint $table)
        {
            
$table->engine 'InnoDB';
            
$table->increments('CountryID')->unsigned();
            
$table->string("Name",45);
            
$table->string("ISO",2);
            
$table->string("ISO3",3);
        });
    }


    
/**
     * Reverse the migrations.
     *
     * @return void
     */
    
public function down()
    {
        
Schema::drop('Countries');
    }

}
Онлайн: 1
Реклама