From 62b7e45a8c2c177eab759f65d0fd5a916c422a42 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 1 Feb 2024 11:34:57 +0100 Subject: [PATCH 1/2] migration shift --- application/migrations/170_tag_2_6_3.php | 30 +++++++++++++++++++ ...st_login.php => 171_rename_last_login.php} | 0 ...andxuser.php => 172_add_rac_bandxuser.php} | 0 ...sions.php => 173_primary_subdivisions.php} | 0 ...cleanup.php => 174_main_index_cleanup.php} | 0 ..._theme_mode.php => 175_add_theme_mode.php} | 0 ...lotw_keys.php => 176_recode_lotw_keys.php} | 0 ..._themes.php => 177_add_logo_to_themes.php} | 0 8 files changed, 30 insertions(+) create mode 100644 application/migrations/170_tag_2_6_3.php rename application/migrations/{170_rename_last_login.php => 171_rename_last_login.php} (100%) rename application/migrations/{171_add_rac_bandxuser.php => 172_add_rac_bandxuser.php} (100%) rename application/migrations/{172_primary_subdivisions.php => 173_primary_subdivisions.php} (100%) rename application/migrations/{173_main_index_cleanup.php => 174_main_index_cleanup.php} (100%) rename application/migrations/{174_add_theme_mode.php => 175_add_theme_mode.php} (100%) rename application/migrations/{175_recode_lotw_keys.php => 176_recode_lotw_keys.php} (100%) rename application/migrations/{176_add_logo_to_themes.php => 177_add_logo_to_themes.php} (100%) diff --git a/application/migrations/170_tag_2_6_3.php b/application/migrations/170_tag_2_6_3.php new file mode 100644 index 000000000..af1de1134 --- /dev/null +++ b/application/migrations/170_tag_2_6_3.php @@ -0,0 +1,30 @@ +db->where('option_name', 'version'); + $this->db->update('options', array('option_value' => '2.6.3')); + + // 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.2')); + } +} \ No newline at end of file diff --git a/application/migrations/170_rename_last_login.php b/application/migrations/171_rename_last_login.php similarity index 100% rename from application/migrations/170_rename_last_login.php rename to application/migrations/171_rename_last_login.php diff --git a/application/migrations/171_add_rac_bandxuser.php b/application/migrations/172_add_rac_bandxuser.php similarity index 100% rename from application/migrations/171_add_rac_bandxuser.php rename to application/migrations/172_add_rac_bandxuser.php diff --git a/application/migrations/172_primary_subdivisions.php b/application/migrations/173_primary_subdivisions.php similarity index 100% rename from application/migrations/172_primary_subdivisions.php rename to application/migrations/173_primary_subdivisions.php diff --git a/application/migrations/173_main_index_cleanup.php b/application/migrations/174_main_index_cleanup.php similarity index 100% rename from application/migrations/173_main_index_cleanup.php rename to application/migrations/174_main_index_cleanup.php diff --git a/application/migrations/174_add_theme_mode.php b/application/migrations/175_add_theme_mode.php similarity index 100% rename from application/migrations/174_add_theme_mode.php rename to application/migrations/175_add_theme_mode.php diff --git a/application/migrations/175_recode_lotw_keys.php b/application/migrations/176_recode_lotw_keys.php similarity index 100% rename from application/migrations/175_recode_lotw_keys.php rename to application/migrations/176_recode_lotw_keys.php diff --git a/application/migrations/176_add_logo_to_themes.php b/application/migrations/177_add_logo_to_themes.php similarity index 100% rename from application/migrations/176_add_logo_to_themes.php rename to application/migrations/177_add_logo_to_themes.php From 60df7e62bffe419a61d611773dfdc21c2ca190f2 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 1 Feb 2024 11:39:10 +0100 Subject: [PATCH 2/2] set migration 177 --- application/config/migration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/config/migration.php b/application/config/migration.php index f176f248e..4d694c727 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE; | */ -$config['migration_version'] = 176; +$config['migration_version'] = 177; /* |--------------------------------------------------------------------------