[migration] consider previous version as done, not current version stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 18 Aug 2009 08:53:03 +0200
branchstable
changeset 2897 2658f432284c
parent 2879 ae26a80c0635
child 2903 043c8fcb3819
[migration] consider previous version as done, not current version
common/migration.py
--- a/common/migration.py	Mon Aug 17 16:41:12 2009 +0200
+++ b/common/migration.py	Tue Aug 18 08:53:03 2009 +0200
@@ -157,7 +157,7 @@
                     # take care to X.Y.Z_Any.py / X.Y.Z_common.py: we've to call
                     # cube_upgraded once all script of X.Y.Z have been executed
                     if prevversion is not None and version != prevversion:
-                        self.cube_upgraded(cube, version)
+                        self.cube_upgraded(cube, prevversion)
                     prevversion = version
                     self.process_script(script)
                 self.cube_upgraded(cube, toversion)