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
2017-08-03 16:35:36 +10:00

35 lines
549 B
PHP

<?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');
}
}