Skip to content

Commit

Permalink
Merge PR OCA#835 into 13.0
Browse files Browse the repository at this point in the history
Signed-off-by legalsylvain
  • Loading branch information
OCA-git-bot committed Jun 30, 2024
2 parents 0443273 + d38fb8a commit 00338e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mass_editing/migrations/13.0.1.0.0/post-migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ def migrate(cr, version):
if not version:
return
# Don't execute if already migrated in v12
cr.execute("SELECT 1 FROM pg_class WHERE relname = %s", ("mass_field_rel",))
if not cr.fetchone():
return

cr.execute("SELECT COUNT(*) FROM mass_editing_line")
if cr.fetchone()[0] > 0:
return
Expand Down

0 comments on commit 00338e4

Please sign in to comment.