Skip to content

Commit

Permalink
Fix regression while renaming setting with typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuelsmann committed May 28, 2023
1 parent 2a79d5a commit 8d3dd88
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 8d3dd88

Please sign in to comment.