Enable english for all users in db migration (#5489)

This commit is contained in:
Nutomic 2025-03-07 13:44:23 +00:00 committed by GitHub
parent 9a64902ace
commit 85a4071a5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,3 @@
SELECT
1;

View file

@ -0,0 +1,12 @@
-- enable english for all users
INSERT INTO local_user_language (local_user_id, language_id)
SELECT
local_user_id,
37
FROM
local_user_language
GROUP BY
local_user_id
HAVING
NOT (37 = ANY (array_agg(language_id)));