File: /home/xdas/public_html/oldsite/database/migrations/2014_04_21_153141_create_places_table.php
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreatePlacesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('places', function (Blueprint $table) {
$table->increments('id');
$table->string('title_ar');
$table->string('title_en')->nullable();
$table->longText('description_en')->nullable();
$table->longText('description_ar');
$table->Text('meta_description_en')->nullable();
$table->Text('meta_description_ar')->nullable();
$table->double('let')->nullable();
$table->double('length')->nullable();
$table->string('tags')->nullable();
$table->string('video');
$table->enum('status', ['0', '1'])->default('1');
$table->string('slogen_ar')->nullable();
$table->string('slogen_en')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('places');
}
}