Fix database for postgresql

This commit is contained in:
James Cole
2017-06-09 11:51:59 +02:00
parent a2145f6b49
commit 762d7bcc34

View File

@@ -474,7 +474,7 @@ class CreateMainTables extends Migration
$table->text('description')->nullable();
$table->decimal('latitude', 24, 12)->nullable();
$table->decimal('longitude', 24, 12)->nullable();
$table->boolean('zoomLevel')->nullable();
$table->smallInteger('zoomLevel', false, true)->nullable();
// link user id to users table
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');