summaryrefslogtreecommitdiff
path: root/rt/etc/upgrade/3.1.0/acl.Pg
diff options
context:
space:
mode:
Diffstat (limited to 'rt/etc/upgrade/3.1.0/acl.Pg')
-rwxr-xr-xrt/etc/upgrade/3.1.0/acl.Pg19
1 files changed, 19 insertions, 0 deletions
diff --git a/rt/etc/upgrade/3.1.0/acl.Pg b/rt/etc/upgrade/3.1.0/acl.Pg
new file mode 100755
index 000000000..809e99ab3
--- /dev/null
+++ b/rt/etc/upgrade/3.1.0/acl.Pg
@@ -0,0 +1,19 @@
+sub acl {
+ my $dbh = shift;
+
+ my @acls;
+
+ my @tables = qw (
+ attributes_id_seq
+ attributes
+ );
+
+ foreach my $table (@tables) {
+ push @acls,
+ "GRANT SELECT, INSERT, UPDATE, DELETE ON $table to "
+ . $RT::DatabaseUser . ";";
+
+ }
+ return (@acls);
+}
+1;