From 2f2e95e09f523ec0d5c85013e531bbf6ec32d962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 21 Jan 2016 10:27:22 +0100 Subject: [PATCH] Drop also foreign key constraint of old field column of ir.rule The foreign key must be dropped otherwise changes in the ir.model.field table can fail because of the foreign key constraint. The migration should always remove all unused constraints. issue5241 review17741002 --- trytond/ir/rule.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trytond/ir/rule.py b/trytond/ir/rule.py index 267705bf0f..f3dc849071 100644 --- a/trytond/ir/rule.py +++ b/trytond/ir/rule.py @@ -117,6 +117,7 @@ class Rule(ModelSQL, ModelView): # Migration from 2.6: replace field, operator and operand by domain table.not_null_action('field', action='remove') + table.drop_fk('field') table.not_null_action('operator', action='remove') table.not_null_action('operand', action='remove')