mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-18 16:02:10 +00:00
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