Project

General

Profile

« Previous | Next » 

Revision 12073

schemas/Makefile: %/uninstall: split into 2 rules like for %/install, so that different actions can easily be added for the public schema

View differences:

Makefile
36 36
	-<$< $(psqlNoSearchPath)
37 37
# ignore errors if schema exists
38 38

  
39
%/uninstall: _always
40
	@$(if $(wildcard $*.sql),,$(call confirmRmPublicSchema,$*))
39
# must come before `%/uninstall: vegbien.sql` to override it
40
%/uninstall: %.sql _always
41 41
	echo $(call rmSchemaCmd,$*)|$(psqlNoSearchPath)
42 42

  
43 43
#### public
......
59 59
	<$< $(sed) -e 's/( )(validation)([,; ])/\1"$*_\2"\3/g'$(if\
60 60
$(filter public,$*),, -e 's/( )public([,; ])/\1"$*"\2/g')|$(psqlNoSearchPath)
61 61

  
62
%/uninstall: vegbien.sql _always
63
	$(call confirmRmPublicSchema,$*)
64
	echo $(call rmSchemaCmd,$*)|$(psqlNoSearchPath)
65

  
62 66
public/uninstall: validation/uninstall
63 67

  
64 68
# Replaces the current public schema with the given version

Also available in: Unified diff