FEATURE: add language table

This commit is contained in:
Michal Kváček
2016-07-21 23:11:05 +02:00
parent 949b1f7c61
commit db912c4c91
4 changed files with 108 additions and 0 deletions
@@ -0,0 +1,33 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class MakeLangEnumerations extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('languages', function (Blueprint $table) {
$table->string('code', 8)
->primary();
$table->string('name')
->comment('Translated name for given language');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('languages');
}
}