apm_package_upgrade_from (private)

 apm_package_upgrade_from package_key version_name

Defined in packages/acs-tcl/tcl/apm-install-procs.tcl

Parameters:
package_key - The package you're installing
version_name - The version of the package you're installing
Returns:
the version of the package currently installed, which we're upgrading from, if it's different from the version_name passed in. If this is not an upgrade, returns the empty string.

Partial Call Graph (max 5 caller/called nodes):
%3 apm_package_install apm_package_install (public) apm_package_upgrade_from apm_package_upgrade_from apm_package_install->apm_package_upgrade_from db_string db_string (public) apm_package_upgrade_from->db_string

Testcases:
No testcase defined.
Source code:
    return [db_string apm_package_upgrade_from {} -default ""]
Generic XQL file:
packages/acs-tcl/tcl/apm-install-procs.xql

PostgreSQL XQL file:
<fullquery name="apm_package_upgrade_from.apm_package_upgrade_from">
    <querytext>
      
	    select version_name from apm_package_versions
	    where package_key = :package_key
	    and version_id = apm_package__highest_version(:package_key)
	
      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-install-procs-postgresql.xql

Oracle XQL file:
<fullquery name="apm_package_upgrade_from.apm_package_upgrade_from">
    <querytext>
      
	    select version_name from apm_package_versions
	    where package_key = :package_key
	    and version_id = apm_package.highest_version(:package_key)
	
      </querytext>
</fullquery>
packages/acs-tcl/tcl/apm-install-procs-oracle.xql

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