From 1e1e8fb1c4fe15debbf17ac6a215abf1c7daec07 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Wed, 16 Nov 2022 13:58:36 +0000 Subject: [PATCH] [Satellites] Change exisiting QSOs to IO-117 --- application/config/migration.php | 2 +- .../106_change_greencube_to_oscar.php | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 application/migrations/106_change_greencube_to_oscar.php diff --git a/application/config/migration.php b/application/config/migration.php index 4082bbf7..1533ff2e 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 105; +$config['migration_version'] = 106; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/106_change_greencube_to_oscar.php b/application/migrations/106_change_greencube_to_oscar.php new file mode 100644 index 00000000..fb5c7710 --- /dev/null +++ b/application/migrations/106_change_greencube_to_oscar.php @@ -0,0 +1,26 @@ +db->set('COL_SAT_NAME', 'IO-117'); + $this->db->set('COL_SAT_MODE', 'U'); + $this->db->where('COL_SAT_NAME', 'GREENCUBE'); + $this->db->update($this->config->item('table_name')); + } + + public function down() + { + $this->db->set('COL_SAT_NAME', 'GREENCUBE'); + $this->db->where('COL_SAT_NAME', 'IO-117'); + $this->db->update($this->config->item('table_name')); + } +} \ No newline at end of file