mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 09:20:22 +08:00
fix postgres user role enum casts in migrations
This commit is contained in:
@@ -98,5 +98,5 @@ INSERT INTO public.user_group_members (group_id, user_id)
|
||||
SELECT '00000000-0000-0000-0000-000000000001', id
|
||||
FROM public.users
|
||||
WHERE is_deleted IS FALSE
|
||||
AND LOWER(role) <> 'admin'
|
||||
AND LOWER(role::text) <> 'admin'
|
||||
ON CONFLICT (group_id, user_id) DO NOTHING;
|
||||
|
||||
Reference in New Issue
Block a user