[migration] fix crash when adding a new meta relation type. Closes #2532483 stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 04 Dec 2012 13:41:20 +0100
branchstable
changeset 8616 820cb9cee702
parent 8615 a24fbd24ede4
child 8617 d8916cee7b70
[migration] fix crash when adding a new meta relation type. Closes #2532483
server/migractions.py
--- a/server/migractions.py	Mon Dec 10 11:50:42 2012 +0100
+++ b/server/migractions.py	Tue Dec 04 13:41:20 2012 +0100
@@ -1061,7 +1061,7 @@
                         rdef = copy(rschema.rdef(rschema.subjects(objtype)[0], objtype))
                         rdef.subject = etype
                         rdef.rtype = self.repo.schema.rschema(rschema)
-                        rdef.object = self.repo.schema.rschema(objtype)
+                        rdef.object = self.repo.schema.eschema(objtype)
                         ss.execschemarql(execute, rdef,
                                          ss.rdef2rql(rdef, cmap, gmap))
         if commit: