Skip to content

Commit 2596c7a

Browse files
committed
wip
1 parent b5256eb commit 2596c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postgresql/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func sliceContainsStr(haystack []string, needle string) bool {
251251
// see: https://www.postgresql.org/docs/current/sql-grant.html
252252
var allowedPrivileges = map[string][]string{
253253
"database": {"ALL", "CREATE", "CONNECT", "TEMPORARY"},
254-
"table": {"ALL", "SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER"},
254+
"table": {"ALL", "SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER", "MAINTAIN"},
255255
"sequence": {"ALL", "USAGE", "SELECT", "UPDATE"},
256256
"schema": {"ALL", "CREATE", "USAGE"},
257257
"function": {"ALL", "EXECUTE"},

postgresql/helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func TestArePrivilegesEqual(t *testing.T) {
7171
},
7272
{
7373
buildResourceData("table", t),
74-
buildPrivilegesSet("SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER"),
74+
buildPrivilegesSet("SELECT", "INSERT", "UPDATE", "DELETE", "TRUNCATE", "REFERENCES", "TRIGGER", "MAINTAIN"),
7575
buildPrivilegesSet("ALL"),
7676
true,
7777
},

0 commit comments

Comments
 (0)