fix: remove admin instance username if setting disabled (#3398)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
-- Add down migration script here
|
||||
@@ -0,0 +1,3 @@
|
||||
-- Add up migration script here
|
||||
UPDATE password SET username = NULL WHERE email = 'admin@windmill.dev'
|
||||
AND (SELECT value FROM global_settings WHERE name = 'automate_username_creation') IS DISTINCT FROM 'true';
|
||||
Reference in New Issue
Block a user