<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class BravoLocation extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('bravo_locations', function (Blueprint $table) { $table->bigIncrements('id'); $table->string('name',255)->nullable(); $table->text('content')->nullable(); $table->string('slug',255)->nullable(); $table->integer('image_id')->nullable(); $table->string('map_lat',20)->nullable(); $table->string('map_lng',20)->nullable(); $table->integer('map_zoom')->nullable(); $table->string('status',50)->nullable(); $table->nestedSet(); $table->integer('create_user')->nullable(); $table->integer('update_user')->nullable(); $table->softDeletes(); //Languages $table->bigInteger('origin_id')->nullable(); $table->string('lang',10)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('bravo_locations'); } }