2016-05-19 15:01:28 +01:00
|
|
|
<?php
|
|
|
|
|
2020-10-17 10:56:20 +01:00
|
|
|
use Illuminate\Database\Schema\Blueprint;
|
2016-05-19 15:01:28 +01:00
|
|
|
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('name');
|
|
|
|
$table->string('slug')->unique();
|
|
|
|
$table->text('description')->nullable();
|
2020-10-17 10:56:20 +01:00
|
|
|
$table->text('location');
|
|
|
|
$table->text('polygon')->nullable();
|
2016-05-19 15:01:28 +01:00
|
|
|
$table->timestamps();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reverse the migrations.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function down()
|
|
|
|
{
|
|
|
|
Schema::drop('places');
|
|
|
|
}
|
|
|
|
}
|