Project

General

Profile

« Previous | Next » 

Revision 5819

input.Makefile: Staging tables installation: Added %/uninstall, %/reinstall to allow reinstalling individual tables

View differences:

input.Makefile
246 246
endef
247 247
# table-scope src table's row_num col to allow joining it with other tables
248 248

  
249
%/uninstall: _always
250
	echo 'DROP TABLE IF EXISTS "$(datasrc)"."$*" CASCADE;'|$(psqlAsBien)
251

  
252
%/reinstall: _always %/uninstall %/install ;
253

  
249 254
cleanup: _always $(tables:%=%/cleanup) ;
250 255

  
251 256
# WARNING: This removes any index comments, due to a PostgreSQL bug.

Also available in: Unified diff