misc/migration/bootstrapmigration_repository.py
changeset 7562 cdef82ca9eab
parent 7547 3d654a7df823
parent 7549 465009397d91
child 7736 8767d03dab17
--- a/misc/migration/bootstrapmigration_repository.py	Thu Jun 23 07:41:25 2011 +0200
+++ b/misc/migration/bootstrapmigration_repository.py	Mon Jun 27 15:30:52 2011 +0200
@@ -100,7 +100,7 @@
             drop_relation_definition('CWRType', '%s_permission' % action, 'RQLExpression')
     sync_schema_props_perms('read_permission', syncperms=False) # fix read_permission cardinality
 
-if applcubicwebversion < (3, 9, 6) and cubicwebversion >= (3, 9, 6):
+if applcubicwebversion < (3, 9, 6) and cubicwebversion >= (3, 9, 6) and not 'CWUniqueTogetherConstraint' in schema:
     add_entity_type('CWUniqueTogetherConstraint')
 
 if not ('CWUniqueTogetherConstraint', 'CWRType') in schema['relations'].rdefs: