Roundup Tracker - Issues

Issue 1979556

classification
rdbms_common.upgrade_db() is broken
Type: Severity: normal
Components: Database Versions:
process
Status: closed fixed
:
: richard : richard, stefan
Priority: normal :

Created on 2008-05-30 17:59 by stefan, last changed 2008-08-18 06:26 by richard.

Messages
msg2561 Author: [hidden] (stefan) Date: 2008-05-30 17:59
The upgrade_db() code compares version numbers to figure out whether to automatically attempt to upgrade.
It assumes that a version mismatch implies that
new_version > old_version.

However, I have run into a case where I (accidentally) access an already upgraded (version 4) database with an older installation of roundup (version 3).

While this is arguably a user error, roundup should (and easily could !) protect against inadvertent (and probably corruptive) 'downgrades' like that.
msg2562 Author: [hidden] (richard) Date: 2008-08-18 06:26
Roundup will now raise an error if you try to run a new database with old code. Of course this only applies to Roundup 1.4+ so you'll just have to be careful with older versions.
History
Date User Action Args
2008-05-30 17:59:16stefancreate