This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/database/migrations/2017_07_23_000000_create_language_table.php

35 lines
549 B
PHP
Raw Permalink Normal View History

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateLanguageTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('language', function(Blueprint $table)
{
$table->integer('id',TRUE);
$table->string('name', 45)->nullable()->unique();
$table->string('iso', 5)->nullable()->unique();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('language');
}
}