misc/migration/3.5.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 03 Nov 2011 15:27:31 +0100
branchstable
changeset 8048 10a0f73d834d
parent 4042 f85a4c846aad
child 8798 cdab3aadc679
permissions -rw-r--r--
[rset] replace entity cw_rset on .limit(inplace=True) will avoid pb if the entity is still referenced by some other entity relations cache. Closes #2065643 Also, drop '_resultset' from some test names on the way (redundant information, we're in ResultSetTC...)

add_relation_type('prefered_form')

rql('SET X prefered_form Y WHERE Y canonical TRUE, X identical_to Y')
commit()

drop_attribute('EmailAddress', 'canonical')
drop_relation_definition('EmailAddress', 'identical_to', 'EmailAddress')

if 'see_also' in schema:
    sync_schema_props_perms('see_also', syncprops=False, syncrdefs=False)