From cf10703d2a30752bc322c203651567829215f122 Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Sat, 2 Aug 2025 13:10:07 +0100 Subject: [PATCH] Add migration to tag Cloudlog as version 2.6.22 Introduces a migration that updates the application version to 2.6.22 and triggers the version info dialog for users. The down method reverts the version back to 2.6.21. --- application/migrations/204_tag_2_6_22.php | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 application/migrations/204_tag_2_6_22.php diff --git a/application/migrations/204_tag_2_6_22.php b/application/migrations/204_tag_2_6_22.php new file mode 100644 index 00000000..35a8bc6b --- /dev/null +++ b/application/migrations/204_tag_2_6_22.php @@ -0,0 +1,30 @@ +db->where('option_name', 'version'); + $this->db->update('options', array('option_value' => '2.6.22')); + + // Trigger Version Info Dialog + $this->db->where('option_type', 'version_dialog'); + $this->db->where('option_name', 'confirmed'); + $this->db->update('user_options', array('option_value' => 'false')); + + } + + public function down() + { + $this->db->where('option_name', 'version'); + $this->db->update('options', array('option_value' => '2.6.21')); + } +} \ No newline at end of file