comparison db_schema/setup-db.sh @ 752:0cf9387c8da2

Added grant to all sequences.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 30 Oct 2015 15:07:22 +0100
parents 17165e710631
children 9d2070b84238
comparison
equal deleted inserted replaced
751:37a8f4d157c7 752:0cf9387c8da2
8 psql --command "CREATE USER $ROLE_NAME PASSWORD '$ROLE_PW';" 8 psql --command "CREATE USER $ROLE_NAME PASSWORD '$ROLE_PW';"
9 createdb -E UTF-8 $DB_NAME 9 createdb -E UTF-8 $DB_NAME
10 psql -d $DB_NAME -f $DIR/lada_schema.sql 10 psql -d $DB_NAME -f $DIR/lada_schema.sql
11 psql -d $DB_NAME --command \ 11 psql -d $DB_NAME --command \
12 "GRANT USAGE ON SCHEMA stammdaten, bund, land TO $ROLE_NAME; 12 "GRANT USAGE ON SCHEMA stammdaten, bund, land TO $ROLE_NAME;
13 GRANT SELECT
14 ON ALL SEQUENCES IN SCHEMA stammdaten, bund, land TO $ROLE_NAME;
13 GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES 15 GRANT SELECT, INSERT, UPDATE, DELETE, REFERENCES
14 ON ALL TABLES IN SCHEMA stammdaten, bund, land TO $ROLE_NAME;" 16 ON ALL TABLES IN SCHEMA stammdaten, bund, land TO $ROLE_NAME;"
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)