[migration] fix crash when adding a new meta relation type. Closes #2532483
--- 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: