server/migractions.py
changeset 9964 f4a3ee05cf9d
parent 9963 5531f5577b50
child 10014 74b793086067
--- a/server/migractions.py	Thu Aug 28 08:02:15 2014 +0200
+++ b/server/migractions.py	Thu Aug 28 07:44:29 2014 +0200
@@ -579,6 +579,9 @@
         """
         subjtype, objtype = str(subjtype), str(objtype)
         rschema = self.fs_schema.rschema(rtype)
+        if rschema.rule:
+            raise ExecutionError('Cannot synchronize a relation definition for a '
+                                 'computed relation (%s)' % rschema)
         reporschema = self.repo.schema.rschema(rschema)
         if (subjtype, rschema, objtype) in self._synchronized:
             return