Skip to content

Commit

Permalink
Merge pull request OCA#4163 from akretion/14-imp-stock_if_not_exists
Browse files Browse the repository at this point in the history
[14.0][IMP] stock: add IF NOT EXISTS in ADD COLUMN
  • Loading branch information
pedrobaeza authored Oct 16, 2023
2 parents 2a9c1ea + c8c7622 commit 9a98a68
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def fast_precreate_orderpoint_product_category_id(env):
env.cr,
"""
ALTER TABLE stock_warehouse_orderpoint
ADD COLUMN product_category_id integer""",
ADD COLUMN IF NOT EXISTS product_category_id integer""",
)
openupgrade.logged_query(
env.cr,
Expand Down

0 comments on commit 9a98a68

Please sign in to comment.