File: D:/HostingSpaces/SBogers10/komma.pro/database/migrations/2017_05_30_091642_create_cases_table.php
<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateCasesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('cases',function(Blueprint $table)
{
$table->increments('id');
$table->integer('site_id')->unsigned()->index('pages_site_id_foreign');
$table->string('code_name')->nullable();
$table->boolean('active')->default(1);
$table->string('primary_color')->nullable();
$table->string('drip_color')->nullable();
$table->integer('lft');
$table->integer('rgt');
$table->integer('tree');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('cases');
}
}