misc/migration/3.10.7_Any.py
branchstable
changeset 6896 784d5df35af1
parent 6852 970d1aab42a1
equal deleted inserted replaced
6895:32eb31855196 6896:784d5df35af1
     1 if not ('CWUniqueTogetherConstraint', 'CWRType') in schema['relations'].rdefs:
       
     2     add_relation_definition('CWUniqueTogetherConstraint', 'relations', 'CWRType')
       
     3     rql('SET C relations RT WHERE C relations RDEF, RDEF relation_type RT')
       
     4     commit()
       
     5     drop_relation_definition('CWUniqueTogetherConstraint', 'relations', 'CWAttribute')
       
     6     drop_relation_definition('CWUniqueTogetherConstraint', 'relations', 'CWRelation')
       
     7 
       
     8 add_attribute('TrInfo', 'tr_count')
     1 add_attribute('TrInfo', 'tr_count')
     9 sync_schema_props_perms('TrInfo')
     2 sync_schema_props_perms('TrInfo')