misc/migration/3.5.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 21 Sep 2009 11:41:17 +0200
branchstable
changeset 3334 8d831c02da9a
parent 3277 4fdb165ae3de
child 4042 f85a4c846aad
permissions -rw-r--r--
fix sort of fields vocabulary: should consider option groups
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3214
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
add_relation_type('prefered_form')
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
rql('SET X prefered_form Y WHERE Y canonical TRUE, X identical_to Y')
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
checkpoint()
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     6
drop_attribute('EmailAddress', 'canonical')
49d085ba05ff [3.5 migration] missing identical_to/canonical -> prefered_form migration
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     7
drop_relation_definition('EmailAddress', 'identical_to', 'EmailAddress')
3277
4fdb165ae3de fix see_also permissions
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3214
diff changeset
     8
4fdb165ae3de fix see_also permissions
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3214
diff changeset
     9
if 'see_also' in schema:
4fdb165ae3de fix see_also permissions
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 3214
diff changeset
    10
    sync_schema_props_perms('see_also', syncprops=False, syncrdefs=False)