More base setup and integration with AdminLTE
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?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');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user