mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-10 14:54:19 +00:00
fix: migration fails if users exist with no email address
This commit is contained in:
@@ -1 +1,8 @@
|
||||
UPDATE app_config_variables SET key = 'ldapAdminGroupName' WHERE key = 'ldapAttributeAdminGroup';
|
||||
UPDATE app_config_variables
|
||||
SET key = 'ldapAdminGroupName'
|
||||
WHERE key = 'ldapAttributeAdminGroup'
|
||||
AND NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM app_config_variables
|
||||
WHERE key = 'ldapAdminGroupName'
|
||||
);
|
||||
Reference in New Issue
Block a user