[FIX] only drop column if it exists

In my v10 base acc_type is a computed non-stored field
Basically same change as here: 11681f5114
This commit is contained in:
Hans Henrik Gabelgaard
2018-12-29 18:56:15 +01:00
committed by GitHub
parent b19f6f9459
commit 232bdb2874

View File

@@ -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')