From 750ec58fe0bcff50ef676ebc03b1e6c957596e0c Mon Sep 17 00:00:00 2001 From: Andreas Kristiansen <6977712+AndreasK79@users.noreply.github.com> Date: Sun, 28 Sep 2025 11:07:27 +0200 Subject: [PATCH] Added run part --- application/migrations/258_adif_3_1_6.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/application/migrations/258_adif_3_1_6.php b/application/migrations/258_adif_3_1_6.php index c96f3a459..15f235c32 100644 --- a/application/migrations/258_adif_3_1_6.php +++ b/application/migrations/258_adif_3_1_6.php @@ -62,6 +62,18 @@ class Migration_adif_3_1_6 extends CI_Migration { log_message('info', 'Column "COL_EQSL_AG" already exists, skipping ALTER TABLE.'); } + // Run the querys + try { + foreach ($qso_fields as $query) { + $this->db->query($query); + } + } catch (Exception $e) { + $this->db->trans_rollback(); + log_message('error', 'Migration failed: ' . $e->getMessage()); + log_message('error', 'The query was: ' . $query); + return false; + } + } public function down() {