From 91e1425c9343f7cc7cb8da70c889aeeb74992406 Mon Sep 17 00:00:00 2001 From: erics Date: Thu, 2 Jan 2003 10:33:46 +0000 Subject: [PATCH] correct table's owership to dolibarr administrator insted of postgresql user --- pgsql/Makefile | 2 +- pgsql/data/Makefile | 3 ++- pgsql/tables/Makefile | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pgsql/Makefile b/pgsql/Makefile index 02d5f884042..6fb82f5a58c 100644 --- a/pgsql/Makefile +++ b/pgsql/Makefile @@ -53,7 +53,7 @@ droptable: load: $(SQL) $(OPTIONS) $(BASE) < data/data.sql -drop: dropdb droppriv +drop: droppriv dropdb dropuser droppriv: $(SQL) $(OPTIONS) template1 -c "revoke all privileges on database $(BASE) from $(OWNER) ; " diff --git a/pgsql/data/Makefile b/pgsql/data/Makefile index 2750d67d945..6882f10986f 100644 --- a/pgsql/data/Makefile +++ b/pgsql/data/Makefile @@ -24,7 +24,8 @@ SQL=psql BASE=dolibarr -OPTIONS=-U postgres +OWNER=dolibarradm +OPTIONS=-U $(OWNER) dev: $(SQL) $(OPTIONS) $(BASE) < data_dev.sql diff --git a/pgsql/tables/Makefile b/pgsql/tables/Makefile index cd70114ea9c..5939382eda7 100644 --- a/pgsql/tables/Makefile +++ b/pgsql/tables/Makefile @@ -21,11 +21,12 @@ # SQL=psql BASE=dolibarr -OPTIONS=-U postgres +OWNER=dolibarradm +OPTIONS=-U $(OWNER) all: show -create: +create: $(SQL) $(OPTIONS) $(BASE) < actioncomm.sql $(SQL) $(OPTIONS) $(BASE) < c_actioncomm.sql $(SQL) $(OPTIONS) $(BASE) < c_chargesociales.sql @@ -68,7 +69,6 @@ create: $(SQL) $(OPTIONS) $(BASE) < socpeople.sql $(SQL) $(OPTIONS) $(BASE) < socstatutlog.sql - drop: $(SQL) $(OPTIONS) $(BASE) < drop.sql