Project

General

Profile

« Previous | Next » 

Revision 6986

schemas/Makefile: %/publish: Fixed bug where commands were not being run transactionally, because --single-transaction requires `--file -` to work properly

View differences:

schemas/Makefile
57 57
# Replaces the current public schema with the given version
58 58
%/publish: _always
59 59
	@$(call confirmRmPublicSchema,public,To save it: make schemas/rotate)
60
	echo $(call rmSchemaCmd,public)\
61
'ALTER SCHEMA "$*" RENAME TO public;'|$(psqlNoSearchPath) --single-transaction
60
	echo $(call rmSchemaCmd,public)'ALTER SCHEMA "$*" RENAME TO public;'\
61
|$(psqlNoSearchPath) --file - --single-transaction
62 62
	@echo $(emph)'In your shell, run:'$(endEmph)'unset version'
63 63

  
64 64
rename/%: _always

Also available in: Unified diff