Forum OpenACS Q&A: Upgrade: apm_package_files & manual upgrade

Hello,
I updated an old version of openacs, I successfully migrate from pgsql 7.2 to 7.3, updated the acs-kernel, lang and auth, correct some broken tcl script but now I'm stuck by the missing apm_package,
I know I should upgrade apm, but apm is broken, what the way to manually upgrade this.
any idea ?
Marc

Log:

Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")

ERROR: relation "apm_package_files" does not exist

SQL:

select count(*) as n_files from apm_package_files where version_id = '5'


while executing
"ns_pg_bind 0or1row nsdb0 {