aboutsummaryrefslogtreecommitdiff
path: root/database/migrations/2020_10_19_210000_create_reservations_table.php
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-31 21:10:32 +0100
committerMateja <mail@matejamaric.com>2020-10-31 21:10:32 +0100
commit2140f96e655d71c4f388ff102babd306bcaad218 (patch)
tree661644b7a1f9f2f9fc5bda6f4d25550db1dec58b /database/migrations/2020_10_19_210000_create_reservations_table.php
parentcde26dcfbbc7cc00080492b03cb4f4d8cdb966f6 (diff)
downloadyota-laravel-2140f96e655d71c4f388ff102babd306bcaad218.tar.gz
yota-laravel-2140f96e655d71c4f388ff102babd306bcaad218.zip
Don't use foreign keys for special calls.
Diffstat (limited to 'database/migrations/2020_10_19_210000_create_reservations_table.php')
-rw-r--r--database/migrations/2020_10_19_210000_create_reservations_table.php5
1 files changed, 3 insertions, 2 deletions
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');
});
}