Skip to content

Commit 48d84e1

Browse files
Merge pull request #9 from Facets-cloud/sanmesh-kakade-patch-1
Update db-grantstatement.yaml
2 parents d0949b6 + 6dab97a commit 48d84e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

config/samples/postgresql_v1alpha1_grantstatement.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ spec:
1717
- 'GRANT CONNECT ON DATABASE postgres TO "test-role";'
1818
- 'GRANT USAGE ON SCHEMA public TO "test-role";'
1919
- 'GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "test-role";'
20-
- 'ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO "test-role";'
20+
- 'ALTER DEFAULT PRIVILEGES FOR ROLE "test-role" IN SCHEMA public GRANT ALL ON TABLES TO "test-role";'

examples/db-grantstatement.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ spec:
2727
# Query to grant all privileges on all sequences in schema public to role test-role
2828
- 'GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO "test-role";'
2929
# Query to grant all privileges on all tables that will be created in schema public to role test-role
30-
- 'ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON TABLES TO "test-role";'
30+
- 'ALTER DEFAULT PRIVILEGES FOR ROLE "test-role" IN SCHEMA public GRANT ALL ON TABLES TO "test-role";'
3131
# Query to grant all privileges on all sequences that will be created in schema public to role test-role
32-
- 'ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON SEQUENCES TO "test-role";'
32+
- 'ALTER DEFAULT PRIVILEGES FOR ROLE "test-role" IN SCHEMA public GRANT ALL ON SEQUENCES TO "test-role";'
3333
# Query to grant all privileges on all functions that will be created in schema public to role test-role
34-
- 'ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT ALL ON FUNCTIONS TO "test-role";'
34+
- 'ALTER DEFAULT PRIVILEGES FOR ROLE "test-role" IN SCHEMA public GRANT ALL ON FUNCTIONS TO "test-role";'

0 commit comments

Comments
 (0)