Skip to content

Commit

Permalink
Merge pull request #7431 from ehuelsmann/fix/master/setting-typo-regr…
Browse files Browse the repository at this point in the history
…ession

Fix regression while renaming setting with typo
  • Loading branch information
ehuelsmann committed May 28, 2023
2 parents 435a380 + 8d3dd88 commit 2fc6336
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
@@ -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
@@ -0,0 +1,5 @@

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

0 comments on commit 2fc6336

Please sign in to comment.