From 13aa9bfe399b9f8ab6103a4b027b68fdb8f425e6 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Thu, 12 Mar 2020 15:04:42 +0000 Subject: [PATCH] Migration file to fix LOTW url issue --- application/config/migration.php | 2 +- .../migrations/037_update_lotw_url.php | 22 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 application/migrations/037_update_lotw_url.php diff --git a/application/config/migration.php b/application/config/migration.php index 25aae08a..faa2edc1 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'] = 36; +$config['migration_version'] = 37; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/037_update_lotw_url.php b/application/migrations/037_update_lotw_url.php new file mode 100644 index 00000000..379ab45e --- /dev/null +++ b/application/migrations/037_update_lotw_url.php @@ -0,0 +1,22 @@ +db->query($sql); + + $sql = "UPDATE config SET lotw_upload_url = 'https://lotw.arrl.org/lotwuser/upload' WHERE id=1"; + $this->db->query($sql); + + $sql = "UPDATE config SET lotw_login_url = 'https://lotw.arrl.org/lotwuser/default' WHERE id=1"; + $this->db->query($sql); + } + + public function down() + { + + } +} +?>