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() + { + } +}