cookieconsent::after-upgrade (private)

 cookieconsent::after-upgrade [ -from_version_name from_version_name ] \
    [ -to_version_name to_version_name ]

Defined in packages/cookie-consent/tcl/callback-procs.tcl

After-upgrade callback.

Switches:
-from_version_name (optional)
-to_version_name (optional)

Partial Call Graph (max 5 caller/called nodes):
%3 apm_package_ids_from_key apm_package_ids_from_key (public) apm_upgrade_logic apm_upgrade_logic (public) parameter::get parameter::get (public) parameter::set_value parameter::set_value (public) cookieconsent::after-upgrade cookieconsent::after-upgrade cookieconsent::after-upgrade->apm_package_ids_from_key cookieconsent::after-upgrade->apm_upgrade_logic cookieconsent::after-upgrade->parameter::get cookieconsent::after-upgrade->parameter::set_value

Testcases:
No testcase defined.
Source code:
        apm_upgrade_logic  -from_version_name $from_version_name  -to_version_name $to_version_name  -spec {
                0.7 0.8 {
                    foreach package_id [apm_package_ids_from_key -package_key cookie-consent] {
                        set old_value [parameter::get -package_id $package_id -parameter Version]
                        ns_log notice  "cookie-conset: after upgrade: check parameter 'Version'"  "of package_id $package_id has value '$old_value'"

                        set new_value $old_value
                        regsub {cookieconsent2/} $old_value "" new_value

                        if {$old_value ne $new_value} {
                            parameter::set_value  -package_id $package_id  -parameter Version  -value $new_value

                            ns_log notice  "cookie-conset: after upgrade: parameter 'Version'"  "of package_id $package_id"  "changed from '$old_value' to '$new_value'"

                        }
                    }
                }
            }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: