Forum OpenACS Q&A: Re: null tree_sortkey on upgrading acs-kernel

Collapse
Posted by Victor Guerra on
Hi Justis,

actually there is a trigger on the acs_objects table ( acs_objects_insert_tr ) which executes before inserting, that trigger takes care of calculating the tree_sortkey. Are you probably dropping that trigger during the upgrade process? Maybe you can quickly check if the trigger is still there after running the whole upgrade process?. I quickly grep'd the upgrade scripts and I don't see any obvious code that would drop that trigger.

Best,

Collapse
Posted by Justis Peters on
Thanks, Victor. I think that's the issue. We're testing this on a copy of the database and it appears that the triggers on rel_constraints somehow didn't get restored.

Kind regards,
Justis

Collapse
Posted by Justis Peters on
Yes, that was the issue. Thanks again for the pointer.