From 5ba65cf2d1b4c9071c3b71b92f8b3632c22643ad Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 28 Oct 2020 17:11:05 -0400 Subject: [PATCH] Initial pirep fares changes #903 --- .../2020_10_28_081536_modify_pirep_fares.php | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 app/Database/migrations/2020_10_28_081536_modify_pirep_fares.php diff --git a/app/Database/migrations/2020_10_28_081536_modify_pirep_fares.php b/app/Database/migrations/2020_10_28_081536_modify_pirep_fares.php new file mode 100644 index 00000000..8295d235 --- /dev/null +++ b/app/Database/migrations/2020_10_28_081536_modify_pirep_fares.php @@ -0,0 +1,41 @@ +unsignedInteger('fare_id')->change()->nullable()->default(0); + + $table->string('code', 50)->unique(); + $table->string('name', 50); + $table->unsignedDecimal('price')->nullable()->default(0.00); + $table->unsignedDecimal('cost')->nullable()->default(0.00); + $table->unsignedInteger('capacity')->nullable()->default(0); + }); + + /** + * Now iterate through the existing table and copy/update everything + * Some fares might already have been removed deleted so just insert some null/errored + * values for those + */ + } + + public function down() + { + } +}