Some code cleanup and a new migration.

This commit is contained in:
James Cole
2021-03-12 06:17:50 +01:00
parent aec70cf6a0
commit 97561ab9c9
36 changed files with 298 additions and 217 deletions
@@ -28,6 +28,7 @@ use Illuminate\Support\Facades\Schema;
/**
* Class MakeLocationsTable.
*
* @codeCoverageIgnore
*/
class MakeLocationsTable extends Migration
@@ -51,17 +52,17 @@ class MakeLocationsTable extends Migration
{
Schema::create(
'locations', static function (Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->softDeletes();
$table->bigIncrements('id');
$table->timestamps();
$table->softDeletes();
$table->integer('locatable_id', false, true);
$table->string('locatable_type', 255);
$table->integer('locatable_id', false, true);
$table->string('locatable_type', 255);
$table->decimal('latitude', 24, 12)->nullable();
$table->decimal('longitude', 24, 12)->nullable();
$table->smallInteger('zoom_level', false, true)->nullable();
}
$table->decimal('latitude', 24, 12)->nullable();
$table->decimal('longitude', 24, 12)->nullable();
$table->smallInteger('zoom_level', false, true)->nullable();
}
);
}
}