correct table's owership to dolibarr administrator insted of postgresql user

This commit is contained in:
erics 2003-01-02 10:33:46 +00:00
parent 1bb5448241
commit 91e1425c93
3 changed files with 6 additions and 5 deletions

View File

@ -53,7 +53,7 @@ droptable:
load: load:
$(SQL) $(OPTIONS) $(BASE) < data/data.sql $(SQL) $(OPTIONS) $(BASE) < data/data.sql
drop: dropdb droppriv drop: droppriv dropdb dropuser
droppriv: droppriv:
$(SQL) $(OPTIONS) template1 -c "revoke all privileges on database $(BASE) from $(OWNER) ; " $(SQL) $(OPTIONS) template1 -c "revoke all privileges on database $(BASE) from $(OWNER) ; "

View File

@ -24,7 +24,8 @@
SQL=psql SQL=psql
BASE=dolibarr BASE=dolibarr
OPTIONS=-U postgres OWNER=dolibarradm
OPTIONS=-U $(OWNER)
dev: dev:
$(SQL) $(OPTIONS) $(BASE) < data_dev.sql $(SQL) $(OPTIONS) $(BASE) < data_dev.sql

View File

@ -21,7 +21,8 @@
# #
SQL=psql SQL=psql
BASE=dolibarr BASE=dolibarr
OPTIONS=-U postgres OWNER=dolibarradm
OPTIONS=-U $(OWNER)
all: show all: show
@ -68,7 +69,6 @@ create:
$(SQL) $(OPTIONS) $(BASE) < socpeople.sql $(SQL) $(OPTIONS) $(BASE) < socpeople.sql
$(SQL) $(OPTIONS) $(BASE) < socstatutlog.sql $(SQL) $(OPTIONS) $(BASE) < socstatutlog.sql
drop: drop:
$(SQL) $(OPTIONS) $(BASE) < drop.sql $(SQL) $(OPTIONS) $(BASE) < drop.sql