← Back to team overview

zeitgeist team mailing list archive

[Bug 665607] Re: DB upgrades not backwards compatible (even when their are)

 

Proposed fix:

=== modified file '_zeitgeist/engine/sql.py'
--- _zeitgeist/engine/sql.py    2010-09-21 16:15:14 +0000
+++ _zeitgeist/engine/sql.py    2010-10-23 15:41:34 +0000
@@ -114,7 +114,7 @@
        # See if we have the right schema version, and try an upgrade if needed
        core_schema_version = _get_schema_version(cursor, constants.CORE_SCHEMA)
        if core_schema_version is not None:
-               if core_schema_version == constants.CORE_SCHEMA_VERSION:
+               if core_schema_version >= constants.CORE_SCHEMA_VERSION:
                        return True
                else:
                        try:

** Changed in: zeitgeist
   Importance: Undecided => Medium

** Changed in: zeitgeist
       Status: New => Confirmed

-- 
DB upgrades not backwards compatible (even when their are)
https://bugs.launchpad.net/bugs/665607
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.

Status in Zeitgeist Framework: Confirmed

Bug description:
Not sure if we already fixed this, but just in case. 

INFO:zeitgeist.sql:Upgrading database 'core' from version 2 to 1. This may take a while
CRITICAL:zeitgeist.sql:Failed to upgrade database 'core' from version 2 to 1: No module named core_2_1





References