File: D:/HostingSpaces/Lacom/lacom.nl/database/migrations/2018_06_05_120016_create_references_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateReferencesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('references', function (Blueprint $table) {
$table->increments('id');
$table->integer('site_id')->unsigned();
$table->boolean('active');
$table->string('name');
$table->string('company');
$table->string('linkedin');
$table->integer('type');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('references');
}
}