Skip to content

Commit

Permalink
Merge pull request #7433 from ehuelsmann/fix/1.9/setting-typo-regression
Browse files Browse the repository at this point in the history
Fix regression while renaming setting with typo
  • Loading branch information
ehuelsmann authored May 28, 2023
2 parents 7966725 + 23a5b5a commit bb866a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql/changes/1.9/fix-template-images-typo.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

-- if both keys exist, remove the one with the typo
DELETE FROM defaults
WHERE setting_key = 'template_immages'
AND EXISTS (select from defaults
where setting_key = 'template_images');

UPDATE defaults
SET setting_key = 'template_images'
WHERE setting_key = 'template_immages';
Expand Down
5 changes: 5 additions & 0 deletions sql/changes/1.9/fix-template-images-typo.sql@1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

UPDATE defaults
SET setting_key = 'template_images'
WHERE setting_key = 'template_immages';

0 comments on commit bb866a9

Please sign in to comment.