[p4dti-discussion] Problem upgrading database schema from P4DTI 2.3.5 -> 2.4.0

Nick Barnes nb at ravenbrook.com
Wed Aug 1 00:02:50 BST 2007


At 2007-07-30 23:56:17+0000, n.herring at atlantiscyberspace.com writes:

> First off, I don't know if this is the correct forum to discuss
> technical issues. If so, please redirect me.

This is fine, thank you for your bug report.

>   File "/p4dti/bugzilla.py", line 1034, in update_p4dti_schema
>     (new_version, sql_commands) =3schema_upgrade[old_schema_version]
> NameError: global name 'schema_upgrade' is not defined

This is a typo in the Python code.  schema_upgrade should be called
self.schema_upgrade.  Not caught by our testing, which surprises me.
I'll think about improving our test suite.  If you are able to make
this change and re-run your upgrade (assuming you have a backup of
your database?), I'd be very grateful.  But if you are running on live
data then that might be too inconvenient, so best not to bother.

Incidentally, your workaround was quite correct.

Nick Barnes
Ravenbrook Limited


More information about the P4DTI-discussion mailing list