mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[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:
committed by
GitHub
parent
b19f6f9459
commit
232bdb2874
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user