diff options
-rw-r--r-- | data/global.pl | 1 | ||||
-rw-r--r-- | util/updates/update_2.23.sql | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/data/global.pl b/data/global.pl index 9ef9d527..7f8f1a0d 100644 --- a/data/global.pl +++ b/data/global.pl @@ -88,6 +88,7 @@ our %S = (%S, [ '1280x960', '4:3' ], [ '1600x1200', '4:3' ], [ '640x400', '_scrres_ws' ], + [ '960x600', '_scrres_ws' ], [ '1024x576', '_scrres_ws' ], [ '1024x600', '_scrres_ws' ], [ '1024x640', '_scrres_ws' ], 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); |