From 232bdb287463c3211151d42e6430adb57077ef1d Mon Sep 17 00:00:00 2001 From: Hans Henrik Gabelgaard Date: Sat, 29 Dec 2018 18:56:15 +0100 Subject: [PATCH] [FIX] only drop column if it exists In my v10 base acc_type is a computed non-stored field Basically same change as here: 11681f5114bc9cf6cf82100bfb9262bf5fddc4a6 --- account_payment_mode/migrations/11.0.1.0.1/pre-migration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_payment_mode/migrations/11.0.1.0.1/pre-migration.py b/account_payment_mode/migrations/11.0.1.0.1/pre-migration.py index 873976730..6d78eb935 100644 --- a/account_payment_mode/migrations/11.0.1.0.1/pre-migration.py +++ b/account_payment_mode/migrations/11.0.1.0.1/pre-migration.py @@ -7,4 +7,4 @@ def migrate(cr, version): if not version: return - cr.execute('ALTER TABLE res_partner_bank DROP COLUMN acc_type') + cr.execute('ALTER TABLE res_partner_bank DROP COLUMN IF EXISTS acc_type')