-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09fe535
commit ac8d359
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
12 changes: 10 additions & 2 deletions
12
backend/migrations/20241127171723_apply_windmill_roles.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
-- for some managed dbs (e.g Azure Postgres) the role is not | ||
-- automatically applied to the user when created | ||
GRANT windmill_user to CURRENT_USER; | ||
GRANT windmill_admin to CURRENT_USER; | ||
DO | ||
$do$ | ||
BEGIN | ||
GRANT windmill_user to CURRENT_USER; | ||
GRANT windmill_admin to CURRENT_USER; | ||
EXCEPTION WHEN OTHERS THEN | ||
RAISE NOTICE 'error granting windmill_user and windmill_admin to current_user: %', SQLERRM; | ||
END | ||
$do$; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters