Project

General

Profile

« Previous | Next » 

Revision 7024

backups/Makefile: %.backup/remove: Fixed bug where need to use $no_search_path option to psql_script_vegbien

View differences:

backups/Makefile
18 18

  
19 19
# DB
20 20
psqlVerbose := $(bin)/psql_script_vegbien --echo-all
21
psqlNoSearchPath := env no_search_path=1 $(bin)/psql_script_vegbien
21 22
pg_dump := $(bin)/pg_dump_vegbien
22 23
backup := "time" env data=1 $(pg_dump)
23 24
restore := "time" $(bin)/postgres_vegbien pg_restore --exit-on-error
......
84 85

  
85 86
%.backup/remove: %.backup _always
86 87
	@$(call confirmRm,$(public*))
87
	echo $(call rmSchemaCmd,$(public*))|$(bin)/psql_script_vegbien
88
	echo $(call rmSchemaCmd,$(public*))|$(psqlNoSearchPath)
88 89

  
89 90
%.backup/rm_indexes: %.backup _always
90 91
	$(pg_dump) $*|$(bin)/mk_rm_indexes|$(psqlVerbose)

Also available in: Unified diff