apm_package_rename (public)
apm_package_rename [ -package_id package_id ] \ -instance_name instance_name
Defined in packages/acs-tcl/tcl/apm-procs.tcl
Renames a package instance
- Switches:
- -package_id (optional)
- -instance_name (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if { $package_id eq "" } { set package_id [ad_conn package_id] } db_transaction { db_dml app_rename { update apm_packages set instance_name = :instance_name where package_id = :package_id } db_dml rename_acs_object { update acs_objects set title = :instance_name where object_id = :package_id } } foreach node_id [db_list nodes_to_sync {}] { site_node::update_cache -node_id $node_id }Generic XQL file: <fullquery name="apm_package_rename.nodes_to_sync"> <querytext> select node_id from site_nodes where object_id = :package_id </querytext> </fullquery>packages/acs-tcl/tcl/apm-procs.xql
PostgreSQL XQL file: packages/acs-tcl/tcl/apm-procs-postgresql.xql
Oracle XQL file: packages/acs-tcl/tcl/apm-procs-oracle.xql