* feat: instance usernames * fix: sqlx + ee ref * feat: make one-off button for enabling * chore: set ee ref * fix: permissions and nits * fix: admin instance username + sqlx build * fix: revert stupid change * fix: only create instance username when setting enabled * chore: update to ee latest
6 lines
176 B
SQL
6 lines
176 B
SQL
INSERT INTO
|
|
global_settings (name, value)
|
|
SELECT 'automate_username_creation', 'true'
|
|
WHERE NOT EXISTS (SELECT 1 FROM workspace WHERE id != 'admins')
|
|
ON CONFLICT DO NOTHING;
|