File: D:/HostingSpaces/stafa/stafa.nl/database/migrations/2019_05_13_152025_create_projects_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateProjectsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('projects', 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('projects');
}
}