author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Wed, 16 Sep 2009 17:48:23 +0200 | |
branch | 3.5 |
changeset 3267 | 320a715e2a22 |
parent 3214 | 49d085ba05ff |
child 3277 | 4fdb165ae3de |
permissions | -rw-r--r-- |
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') |