Project

General

Profile

« Previous | Next » 

Revision 6922

schemas/Makefile: Installation: public: Added public%/publish to replace the current public schema with the given version

View differences:

Makefile
53 53
	@$(confirmRmPublicSchema)
54 54
	echo $(rmPublicSchema)|$(psqlNoSearchPath)
55 55

  
56
# Replaces the current public schema with the given version
57
public%/publish: _always
58
	@$(confirmRmPublicSchema)
59
	echo $(rmPublicSchema)\
60
'ALTER SCHEMA $(@D) RENAME TO public;'|$(psqlNoSearchPath) --single-transaction
61

  
56 62
rename/%: _always
57 63
	echo 'ALTER SCHEMA public RENAME TO "$*";'|$(psqlNoSearchPath)
58 64
	$(MAKE) public/install

Also available in: Unified diff