mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-03-13 15:02:44 +00:00
Enable english for all users in db migration (#5489)
This commit is contained in:
parent
9a64902ace
commit
85a4071a5c
2 changed files with 15 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
SELECT
|
||||
1;
|
||||
|
12
migrations/2025-03-07-094522_enable_english_for_all/up.sql
Normal file
12
migrations/2025-03-07-094522_enable_english_for_all/up.sql
Normal 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)));
|
||||
|
Loading…
Reference in a new issue