From 75e4ed82769143be8968edf9110e6e2fd5d85028 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 18 Oct 2020 22:09:53 +0200 Subject: forms and migrations --- ...2020_10_18_142649_create_reservations_table.php | 10 +++++++ ...020_10_18_183257_create_special_calls_table.php | 33 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 database/migrations/2020_10_18_183257_create_special_calls_table.php (limited to 'database') diff --git a/database/migrations/2020_10_18_142649_create_reservations_table.php b/database/migrations/2020_10_18_142649_create_reservations_table.php index fc8e39a..c8b96f2 100644 --- a/database/migrations/2020_10_18_142649_create_reservations_table.php +++ b/database/migrations/2020_10_18_142649_create_reservations_table.php @@ -16,6 +16,16 @@ class CreateReservationsTable extends Migration Schema::create('reservations', function (Blueprint $table) { $table->id(); $table->boolean('approved')->default(false); + $table->string('specialCall'); + $table->dateTime('fromTime'); + $table->dateTime('toTime'); + $table->string('frequencies', 255); + $table->string('modes', 255); + $table->string('operatorCall'); + $table->string('operatorName'); + $table->string('operatorEmail'); + $table->string('operatorPhone', 50); + $table->integer('qso')->default(0); $table->timestamps(); }); } diff --git a/database/migrations/2020_10_18_183257_create_special_calls_table.php b/database/migrations/2020_10_18_183257_create_special_calls_table.php new file mode 100644 index 0000000..07e92be --- /dev/null +++ b/database/migrations/2020_10_18_183257_create_special_calls_table.php @@ -0,0 +1,33 @@ +id(); + $table->string('sign')->unique(); + $table->text('description'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('special_calls'); + } +} -- cgit v1.2.3