[migration] this is needed to avoid pb with yams 0.33 / cw < 3.13 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 14 Jun 2011 17:15:40 +0200
branchstable
changeset 7505 e04790a6eea8
parent 7504 d95f9002edcc
child 7506 c8cda2aca92e
[migration] this is needed to avoid pb with yams 0.33 / cw < 3.13
server/migractions.py
--- a/server/migractions.py	Tue Jun 14 17:15:39 2011 +0200
+++ b/server/migractions.py	Tue Jun 14 17:15:40 2011 +0200
@@ -1137,6 +1137,10 @@
                                               syncprops=syncprops)
         else:
             for etype in self.repo.schema.entities():
+                if etype.eid is None:
+                     # not yet added final etype (thing to BigInt defined in
+                     # yams though 3.13 migration not done yet)
+                    continue
                 self._synchronize_eschema(etype, syncrdefs=syncrdefs,
                                           syncprops=syncprops, syncperms=syncperms)
         if commit: