--- a/server/migractions.py Thu Aug 28 07:55:33 2014 +0200
+++ b/server/migractions.py Thu Aug 28 08:02:15 2014 +0200
@@ -1018,11 +1018,13 @@
if rtype in reposchema:
print 'warning: relation type %s is already known, skip addition' % (
rtype)
+ elif rschema.rule:
+ ss.execschemarql(execute, rschema, ss.crschema2rql(rschema))
else:
# register the relation into CWRType and insert necessary relation
# definitions
ss.execschemarql(execute, rschema, ss.rschema2rql(rschema, addrdef=False))
- if addrdef:
+ if not rschema.rule and addrdef:
self.commit()
gmap = self.group_mapping()
cmap = self.cstrtype_mapping()