subsite::before_upgrade (private)

 subsite::before_upgrade -from_version_name from_version_name \
    -to_version_name to_version_name

Defined in packages/acs-subsite/tcl/apm-callback-procs.tcl

Handles upgrade

Switches:
-from_version_name (required)
-to_version_name (required)

Partial Call Graph (max 5 caller/called nodes):
%3 ad_acs_kernel_id ad_acs_kernel_id (public) apm_parameter_unregister apm_parameter_unregister (public) apm_upgrade_logic apm_upgrade_logic (public) parameter::get parameter::get (public) parameter::set_value parameter::set_value (public) subsite::before_upgrade subsite::before_upgrade subsite::before_upgrade->ad_acs_kernel_id subsite::before_upgrade->apm_parameter_unregister subsite::before_upgrade->apm_upgrade_logic subsite::before_upgrade->parameter::get subsite::before_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 {
            5.0d3 5.0d4 {
                array set main_site [site_node::get -url /]
                set main_site_id $main_site(package_id)

                # Move parameter values from subsite to kernel

                parameter::set_value  -package_id [ad_acs_kernel_id]  -parameter ApprovalExpirationDays  -value [parameter::get  -package_id $main_site_id  -parameter ApprovalExpirationDays  -default 0]

                parameter::set_value  -package_id [ad_acs_kernel_id]  -parameter PasswordExpirationDays  -value [parameter::get  -package_id $main_site_id  -parameter PasswordExpirationDays  -default 0]


                apm_parameter_unregister  -package_key acs-subsite  -parameter ApprovalExpirationDays  {}

                apm_parameter_unregister  -package_key acs-subsite  -parameter PasswordExpirationDays  {}
            }
        }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-subsite/tcl/apm-callback-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: