File: D:/HostingSpaces/stafa/stafa.nl/database/migrations/2020_04_15_095219_extend_assortments_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ExtendAssortmentsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('assortments', function (Blueprint $table) {
$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();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('assortments', function (Blueprint $table) {
$table->dropColumn('code_name');
$table->dropColumn('lft');
$table->dropColumn('rgt');
$table->dropColumn('tree');
$table->dropColumn('site_id');
$table->dropColumn('servicepoint_id');
});
}
}