jonnybarnes.uk/database/migrations/2015_11_07_130637_create_places_table.php

36 lines
764 B
PHP
Raw Normal View History

2016-05-19 15:01:28 +01:00
<?php
use Illuminate\Database\Migrations\Migration;
2022-07-09 10:08:26 +01:00
use Illuminate\Database\Schema\Blueprint;
2016-05-19 15:01:28 +01:00
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');
}
}