Project

General

Profile

« Previous | Next » 

Revision 12129

schemas/Makefile: %/install, %/publish for public schema: added usage

View differences:

trunk/schemas/Makefile
49 49
confirm,WARNING: This will delete the $(1) schema of your VegBIEN DB!,$(2)))
50 50

  
51 51
# Installs a version of the public schema
52
# usage: make schemas/public/reinstall
53
#        make schemas/r#/reinstall
52 54
%/install: vegbien.sql _always
53 55
	echo $(call mkSchemaCmd,$*)\
54 56
"COMMENT ON SCHEMA \"$*\" IS 'Version: $* ($(date))';"|$(psqlNoSearchPath)
......
65 67
|$(psqlNoSearchPath)
66 68

  
67 69
# Replaces the current public schema with the given version
70
# usage: make schemas/r#/publish
68 71
%/publish: _always
69 72
	@$(call confirmRmPublicSchema,public,To save it: make schemas/rotate)
70 73
	echo $(call rmSchemaCmd,public)'ALTER SCHEMA "$*" RENAME TO public; \

Also available in: Unified diff