From 5321fb03baec0bfa5db28d2c00c9fecb37cedb2e Mon Sep 17 00:00:00 2001 From: phl0 Date: Mon, 2 Dec 2024 00:38:07 +0100 Subject: [PATCH] Handle ASRTU-1 aka. AO-123 (no LoTW yet) --- application/migrations/228_rename_satellites.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/migrations/228_rename_satellites.php b/application/migrations/228_rename_satellites.php index edd287562..b8e3c1fec 100644 --- a/application/migrations/228_rename_satellites.php +++ b/application/migrations/228_rename_satellites.php @@ -148,6 +148,11 @@ class Migration_rename_satellites extends CI_Migration { } else { $this->insert_sat("MO-122", "MESAT1", "LEO", "V/U", "LSB", "145925000", "USB", "435825000", "Y"); } + $query = $this->db->get_where('satellite', array('name' => 'ASRTU-1')); + if ($query->num_rows() > 0) { + $this->remove_sat("ASRTU-1"); + } + $this->insert_sat("AO-123", "ASRTU-1", "LEO", "V/U", "FM", "145850000", "FM", "435400000", "N"); $fields = array( 'exportname' => array( @@ -213,7 +218,6 @@ class Migration_rename_satellites extends CI_Migration { if ($result->num_rows() == 0) { $this->db->insert('satellite', $data); - log_message('debug', 'SQL: '.$this->db->last_query()); $insert_id = $this->db->insert_id(); $modedata = array(