Project

General

Profile

« Previous | Next » 

Revision 12070

schemas/Makefile: `%/install: vegbien.sql`: create a custom _validation schema for *each public schema, rather than one for the most recently-created public schema. this allows validations to continue to be run against a previous version of the DB while a new version is being imported.

View differences:

Makefile
52 52
%/install: vegbien.sql _always
53 53
	echo $(call mkSchemaCmd,$*)\
54 54
"COMMENT ON SCHEMA \"$*\" IS 'Version: $* ($(date))';"|$(psqlNoSearchPath)
55
	<$< $(if $(filter public,$*),,$(sed) 's/( )public([,; ])/\1"$*"\2/g'|)$(psqlNoSearchPath)
55
	# create a custom *_validation schema for *each* public schema, rather than
56
	# one for the most recently-created public schema. this allows validations
57
	# to continue to be run against a previous version of the DB while a new
58
	# version is being imported.
59
	<$< $(sed) 's/( )(validation)([,; ])/\1"$*_\2"\3/g'$(if\
60
$(filter public,$*),, 's/( )public([,; ])/\1"$*"\2/g')|$(psqlNoSearchPath)
56 61

  
57 62
public/uninstall: validation/uninstall
58 63

  

Also available in: Unified diff