Project

General

Profile

« Previous | Next » 

Revision 11251

bugfix: inputs/input.Makefile: %/uninstall: allow user to set is_view=1 flag to use DROP VIEW instead of DROP TABLE

View differences:

input.Makefile
10 10
debug ?=
11 11
full_import ?=
12 12
import_source ?= 1
13
is_view ?=
13 14
log ?= $(if $(test),,1)
14 15
noclobber ?=
15 16
profile ?=
......
323 324
# table-scope src table's row_num col to allow joining it with other tables
324 325

  
325 326
%/uninstall: _always
326
	echo 'DROP TABLE IF EXISTS "$(datasrc)"."$*" CASCADE;'|$(psqlNoSearchPath)
327
	echo 'DROP $(if\
328
$(is_view),VIEW,TABLE) IF EXISTS "$(datasrc)"."$*" CASCADE;'|$(psqlNoSearchPath)
327 329

  
328 330
%/reinstall: _always %/uninstall %/install ;
329 331

  

Also available in: Unified diff