Commit 989a2acb authored by Alex Vandiver's avatar Alex Vandiver
Browse files

RT 4.2 always requires Postgres 8.4 or higher; remove the conditional

Also explain somewhat the rationale behind /^[a-z]/ rather that /_seq$/
parent e3ced30b
......@@ -69,14 +69,11 @@ sub acl {
push @acls, "CREATE USER \"$db_user\" WITH PASSWORD '$db_pass' NOCREATEDB NOCREATEUSER;";
my $sequence_right
= ( $dbh->{pg_server_version} >= 80200 )
foreach my $table (@tables) {
if ( $table =~ /^[a-z]/ && $table ne 'sessions' ) {
# table like objectcustomfields_id_s
push @acls, "GRANT $sequence_right ON $table TO \"$db_user\";"
# Sequences; not all end with _seq because
# objectcustomfieldvalues_id_s is too long
push @acls, "GRANT USAGE, SELECT, UPDATE ON $table TO \"$db_user\";"
else {
push @acls, "GRANT SELECT, INSERT, UPDATE, DELETE ON $table TO \"$db_user\";"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment