Project

General

Profile

« Previous | Next » 

Revision 12140

schemas/Makefile: `%/install: vegbien.sql`: support auxiliary schemas besides *_validation

View differences:

trunk/schemas/Makefile
58 58
	# one for the most recently-created public schema. this allows validations
59 59
	# to continue to be run against a previous version of the DB while a new
60 60
	# version is being imported.
61
	<$< $(sed) -e 's/( )public(_validation)([,; ])/\1"$*\2"\3/g'$(if\
62
$(filter public,$*),, -e 's/( )public([,; ])/\1"$*"\2/g')|$(psqlNoSearchPath)
61
	<$< $(sed) -e 's/( )public(_[[:alnum:]_]+)?([,; ])/\1"$*\2"\3/g'\
62
|$(psqlNoSearchPath) # [[:alnum:]_]+, not ...*, because public_ is a username
63 63

  
64 64
%/uninstall: vegbien.sql _always
65 65
	$(call confirmRmPublicSchema,$*)

Also available in: Unified diff