diff --git a/database/migrations/2020_03_29_175412_remove_southampton_ground.php b/database/migrations/2020_03_29_175412_remove_southampton_ground.php new file mode 100644 index 000000000..dd03c555d --- /dev/null +++ b/database/migrations/2020_03_29_175412_remove_southampton_ground.php @@ -0,0 +1,42 @@ +where('callsign', 'EGHI_GND') + ->delete(); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + DB::table('controller_positions') + ->insert( + [ + 'callsign' => 'EGHI_GND', + 'frequency' => 121.770, + 'created_at' => Carbon::now(), + ] + ); + + AirfieldService::insertIntoOrderBefore('EGHI', 'EGHI_GND', 'EGHI_TWR'); + } +}