From 43f398f99f9fa124f49d68ed00d7450fb7e71c91 Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Mon, 30 Mar 2020 21:46:24 +0100 Subject: [PATCH] Fix #107: Replace TWEED With TARTN (#111) --- ...020_03_29_180102_switch_tweed_to_tartn.php | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 database/migrations/2020_03_29_180102_switch_tweed_to_tartn.php diff --git a/database/migrations/2020_03_29_180102_switch_tweed_to_tartn.php b/database/migrations/2020_03_29_180102_switch_tweed_to_tartn.php new file mode 100644 index 000000000..d7c11335f --- /dev/null +++ b/database/migrations/2020_03_29_180102_switch_tweed_to_tartn.php @@ -0,0 +1,46 @@ +where('fix', 'TWEED') + ->update( + [ + 'fix' => 'TARTN', + 'inbound_heading' => 15, + 'description' => 'TARTN', + 'updated_at' => Carbon::now(), + ] + ); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + DB::table('hold') + ->where('fix', 'TARTN') + ->update( + [ + 'fix' => 'TWEED', + 'inbound_heading' => 196, + 'description' => 'TWEED', + 'updated_at' => Carbon::now(), + ] + ); + } +}