More base setup and integration with AdminLTE
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateCountryTable extends Migration {
|
||||
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('country', function(Blueprint $table)
|
||||
{
|
||||
$table->integer('id',TRUE);
|
||||
$table->string('name', 128)->nullable()->unique('name_UNIQUE');
|
||||
$table->string('description', 128)->nullable();
|
||||
$table->string('notes', 128)->nullable();
|
||||
$table->string('two_code', 16)->nullable()->unique('two_code_UNIQUE');
|
||||
$table->string('three_code', 16)->nullable()->unique('three_code_UNIQUE');
|
||||
$table->boolean('active')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('country');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user