File: D:/HostingSpaces/stafa/stafa.nl/database/migrations/2019_04_15_142700_create_services_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateServicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('services', function (Blueprint $table) {
$table->increments('id');
$table->boolean('active');
$table->string('code_name')->nullable();
$table->integer('lft')->nullable();
$table->integer('rgt')->nullable();
$table->integer('tree')->nullable();
$table->integer('site_id')->nullable();
$table->integer('servicepoint_id')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('services');
}
}