[3.5 migration] missing identical_to/canonical -> prefered_form migration 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 14 Sep 2009 18:25:43 +0200
branch3.5
changeset 3214 49d085ba05ff
parent 3213 36a2357ccbc4
child 3215 bf30ab5ba6ee
[3.5 migration] missing identical_to/canonical -> prefered_form migration
misc/migration/3.5.0_Any.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/migration/3.5.0_Any.py	Mon Sep 14 18:25:43 2009 +0200
@@ -0,0 +1,7 @@
+add_relation_type('prefered_form')
+
+rql('SET X prefered_form Y WHERE Y canonical TRUE, X identical_to Y')
+checkpoint()
+
+drop_attribute('EmailAddress', 'canonical')
+drop_relation_definition('EmailAddress', 'identical_to', 'EmailAddress')