Ajout d'une regle pour générer un fichier global de creation
This commit is contained in:
parent
f7f30e551c
commit
95e49943f1
@ -25,6 +25,8 @@ MYSQL=mysql
|
|||||||
BASE=dolibarr
|
BASE=dolibarr
|
||||||
OPTIONS=
|
OPTIONS=
|
||||||
|
|
||||||
|
TABLES=$(shell find tables/ -name "*sql")
|
||||||
|
|
||||||
all:
|
all:
|
||||||
cd tables \
|
cd tables \
|
||||||
&& make show
|
&& make show
|
||||||
@ -78,3 +80,7 @@ createpriv:
|
|||||||
$(MYSQL) mysql -e "update db set index_priv = 'Y' where db='$(BASE)' ; "
|
$(MYSQL) mysql -e "update db set index_priv = 'Y' where db='$(BASE)' ; "
|
||||||
$(MYSQL) mysql -e "update db set alter_priv = 'Y' where db='$(BASE)' ; "
|
$(MYSQL) mysql -e "update db set alter_priv = 'Y' where db='$(BASE)' ; "
|
||||||
$(MYSQL) mysql -e "flush privileges ; "
|
$(MYSQL) mysql -e "flush privileges ; "
|
||||||
|
|
||||||
|
|
||||||
|
mysql.sql: $(TABLES)
|
||||||
|
find tables/ -name "*sql" | xargs cat | grep -v ^-- > mysql.sql
|
||||||
Loading…
Reference in New Issue
Block a user