summaryrefslogtreecommitdiff
path: root/util/updates/update_2.23.sql
diff options
context:
space:
mode:
Diffstat (limited to 'util/updates/update_2.23.sql')
-rw-r--r--util/updates/update_2.23.sql6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/updates/update_2.23.sql b/util/updates/update_2.23.sql
index 80855d1a..5de7ff9c 100644
--- a/util/updates/update_2.23.sql
+++ b/util/updates/update_2.23.sql
@@ -5,7 +5,7 @@ CREATE INDEX tags_vn_vid ON tags_vn (vid);
--- Extra language for ukrainian and indonesian
+-- Extra language for Arabic, Hebrew, Ukrainian and Indonesian
ALTER TYPE language RENAME TO language_old;
CREATE TYPE language AS ENUM ('ar', 'cs', 'da', 'de', 'en', 'es', 'fi', 'fr', 'he', 'hu', 'id', 'it', 'ja', 'ko', 'nl', 'no', 'pl', 'pt-pt', 'pt-br', 'ru', 'sk', 'sv', 'tr', 'uk', 'vi', 'zh');
@@ -66,3 +66,7 @@ DROP TRIGGER screenshot_process_notify ON screenshots;
DROP FUNCTION screenshot_process_notify();
ALTER TABLE screenshots DROP COLUMN processed;
+
+
+-- New resolution has been added at index 8
+UPDATE releases_rev SET resolution = resolution + 1 WHERE resolution >= 8 AND NOT EXISTS(SELECT 1 FROM releases_rev WHERE resolution >= 14);