misc/migration/3.5.0_Any.py
branch3.5
changeset 3214 49d085ba05ff
child 3277 4fdb165ae3de
--- /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')