Commit a6c4d671 authored by Alice Salsé's avatar Alice Salsé
Browse files

🚚 orga (a tester)

parent 501664d4
......@@ -6,7 +6,7 @@ schemaname=$1
networktype=$2
export PGPASSWORD=${password}
echo Installation des fonctionnalités réseau pour le schema ${schemaname} de la base ${dbname} sur ${host} ${port}
for fichier in sql/network/function*.sql sql/all/function*.sql sql/$networktype/function*.sql sql/$networktype/constraints*.sql sql/all/trigger*.sql sql/network/trigger*.sql sql/$networktype/trigger*.sql
for fichier in sql/network/function*.sql sql/all/function*.sql sql/network/$networktype/function*.sql sql/network/$networktype/constraints*.sql sql/all/trigger*.sql sql/network/trigger*.sql sql/network/$networktype/trigger*.sql
do
psql -h ${host} -d ${dbname} -U ${user} -p ${port} -b -q -v schemaname=${schemaname} -f $fichier
done
......
\encoding UTF8
-- \set schemaname <schemaname>
-- \set schematype <schematype> -- events / network
-->> ACTIVE LES DROITS ADEQUATS SUR LA BASE
GRANT ALL ON DATABASE :DBNAME TO administrateur;
......
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