Skip to content

Commit

Permalink
Outlook: Fix migration for empty settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Dec 10, 2024
1 parent 70395db commit cb2321e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def upgrade():
)
FROM jsonb_array_elements(value) AS elem
)
WHERE module = 'plugin_outlook' AND name = 'overrides'
WHERE module = 'plugin_outlook' AND name = 'overrides' AND value::text != '[]'
''')


Expand All @@ -45,7 +45,7 @@ def downgrade():
)
FROM jsonb_array_elements(value) AS elem
)
WHERE module = 'plugin_outlook' AND name = 'overrides'
WHERE module = 'plugin_outlook' AND name = 'overrides' AND value::text != '[]'
''')
# Rename the field back to status_overrides
op.execute('''
Expand Down

0 comments on commit cb2321e

Please sign in to comment.