<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; class CreateEformVehicleVehiclesTable extends Migration { /* * Run the migrations. * * @return void */ public function up() { /* * Table: eform_vehicle_vehicles */ Schema::create('eform_vehicle_vehicles', function ($table) { $table->increments('id'); $table->string('VIN', 17)->nullable(); $table->string('gross_weight', 22)->nullable(); $table->string('agricultural', 10)->nullable(); $table->string('vehicle_type', 20)->nullable(); $table->integer('vehicle_category')->nullable(); $table->integer('user_id')->nullable(); $table->string('slug', 60)->nullable(); $table->text('marking', 200)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('eform_vehicle_vehicles'); } }