35 lines
549 B
PHP
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');
|
|
}
|
|
|
|
}
|