From 2140f96e655d71c4f388ff102babd306bcaad218 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 31 Oct 2020 21:10:32 +0100 Subject: Don't use foreign keys for special calls. --- database/migrations/2020_10_19_210000_create_reservations_table.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'database') diff --git a/database/migrations/2020_10_19_210000_create_reservations_table.php b/database/migrations/2020_10_19_210000_create_reservations_table.php index ad24f3d..6709d88 100644 --- a/database/migrations/2020_10_19_210000_create_reservations_table.php +++ b/database/migrations/2020_10_19_210000_create_reservations_table.php @@ -16,7 +16,8 @@ class CreateReservationsTable extends Migration Schema::create('reservations', function (Blueprint $table) { $table->id(); $table->boolean('approved')->default(false); - $table->unsignedBigInteger('specialCall'); + //$table->unsignedBigInteger('specialCall'); + $table->string('specialCall', 50); $table->dateTime('fromTime'); $table->dateTime('toTime'); $table->string('frequencies', 255); @@ -27,7 +28,7 @@ class CreateReservationsTable extends Migration $table->string('operatorPhone', 50); $table->integer('qso')->default(0); $table->timestamps(); - $table->foreign('specialCall')->references('id')->on('special_calls'); + //$table->foreign('specialCall')->references('id')->on('special_calls'); }); } -- cgit v1.2.3