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

use IlluminateDatabaseMigrationsMigration;
use 
IlluminateDatabaseSchemaBlueprint;

class 
CreateCurrenciesTable extends Migration {

    
/**
     * Run the migrations.
     *
     * @return void
     */
    
public function up()
    {
        
Schema::create('Currencies', function(Blueprint $table)
        {
            
$table->increments('CurrencyID');
            
$table->string("ISO3",4);
            
$table->string("Symbol",4);
            
$table->string("Name",45);
        });
    }


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

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