misc/migration/bootstrapmigration_repository.py
changeset 10553 1d824df4f2bd
parent 10301 729f36a1bcfa
child 10589 7c23b7de2b8d
--- a/misc/migration/bootstrapmigration_repository.py	Fri Jul 17 16:48:43 2015 +0200
+++ b/misc/migration/bootstrapmigration_repository.py	Tue Jul 28 09:25:26 2015 +0200
@@ -434,6 +434,12 @@
 if applcubicwebversion < (3, 2, 0) and cubicwebversion >= (3, 2, 0):
     add_cube('card', update_database=False)
 
+
+if applcubicwebversion < (3, 21, 1) and cubicwebversion >= (3, 21, 1):
+    add_relation_definition('CWComputedRType', 'read_permission', 'CWGroup')
+    add_relation_definition('CWComputedRType', 'read_permission', 'RQLExpression')
+
+
 def sync_constraint_types():
     """Make sure the repository knows about all constraint types defined in the code"""
     from cubicweb.schema import CONSTRAINTS