notification::apm::after_upgrade (private)
notification::apm::after_upgrade -from_version_name from_version_name \ -to_version_name to_version_name
Defined in packages/notifications/tcl/apm-callback-procs.tcl
After upgrade callback.
- Switches:
- -from_version_name (required)
- -to_version_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: apm_upgrade_logic -from_version_name $from_version_name -to_version_name $to_version_name -spec { 5.1.0d1 5.1.0d2 { db_transaction { # Delete and recreate contract delete_delivery_method_contract create_delivery_method_contract # The old implementation is still there, but now it's unbound # Now change the name of the old implementation db_dml update { update acs_sc_impls set impl_name = 'notification_email_old' where impl_name = 'notification_email' } db_dml update { update acs_sc_impl_aliases set impl_name = 'notification_email_old' where impl_name = 'notification_email' } # Create the new implementation set impl_id [create_email_delivery_method_impl] # Register the new impl ID with notification_delivery_methods update_email_delivery_method_impl -impl_id $impl_id # Delete the old implementation delete_email_delivery_method_impl -impl_name "notification_email_old" } } 5.4.0d2 5.4.0d3 { db_transaction { # Delete and recreate contract delete_delivery_method_contract create_delivery_method_contract # The old implementation is still there, but now it's unbound # Now change the name of the old implementation db_dml update { update acs_sc_impls set impl_name = 'notification_email_old' where impl_name = 'notification_email' } db_dml update { update acs_sc_impl_aliases set impl_name = 'notification_email_old' where impl_name = 'notification_email' } # Create the new implementation set impl_id [create_email_delivery_method_impl] # Register the new impl ID with notification_delivery_methods update_email_delivery_method_impl -impl_id $impl_id # Delete the old implementation delete_email_delivery_method_impl -impl_name "notification_email_old" } } }XQL Not present: Generic, PostgreSQL, Oracle