misc/migration/3.10.7_Any.py
branchstable
changeset 6815 a84190d4e78c
parent 6757 bc878ec35794
child 6852 970d1aab42a1
--- a/misc/migration/3.10.7_Any.py	Thu Jan 13 12:34:17 2011 +0100
+++ b/misc/migration/3.10.7_Any.py	Thu Jan 13 12:36:08 2011 +0100
@@ -1,2 +1,8 @@
+add_relation_definition('CWUniqueTogetherConstraint', 'relations', 'CWRType')
+rql('SET C relations RT WHERE C relations RDEF, RDEF relation_type RT')
+commit()
+drop_relation_definition('CWUniqueTogetherConstraint', 'relations', 'CWAttribute')
+drop_relation_definition('CWUniqueTogetherConstraint', 'relations', 'CWRelation')
+
 add_attribute('TrInfo', 'tr_count')
 sync_schema_props_perms('TrInfo')