Files
windmill/backend/migrations/20240307130500_set_automate_username_creation_setting.up.sql
HugoCasa cf4358a14b feat: instance usernames (#3382)
* 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
2024-03-12 11:55:18 +01:00

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;