Skip to content

Commit

Permalink
Merge PR #902 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by yajo
  • Loading branch information
OCA-git-bot committed Jul 22, 2024
2 parents e2d07fd + e6bdc32 commit d4dce16
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion base_comment_template/migrations/16.0.1.1.0/pre-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

@openupgrade.migrate()
def migrate(env, version):
if not column_exists(env.cr, "base_comment_template", "models"):
if openupgrade.table_exists(
env.cr, "base_comment_template_ir_model_rel"
) and not column_exists(env.cr, "base_comment_template", "models"):
openupgrade.logged_query(
env.cr,
"ALTER TABLE base_comment_template ADD COLUMN IF NOT EXISTS models text",
Expand Down

0 comments on commit d4dce16

Please sign in to comment.