Revision 5697
Added by Aaron Marcuse-Kubitza over 11 years ago
input.Makefile | ||
---|---|---|
235 | 235 |
define import_install_ |
236 | 236 |
(prefix=; . $(bin)/vegbien_dest; "time" nice -n +5\ |
237 | 237 |
env schema=$(datasrc) table=$* $(bin)/csv2db $(catSrcs) $(logInstall*)) |
238 |
# table-scope src table's row_num col to allow joining it with other tables |
|
239 | 238 |
$(if $(filter $(srcTable),$*),($(inDatasrc);\ |
240 | 239 |
echo 'ALTER TABLE "$(datasrc)"."$*" RENAME row_num TO "$*.row_num";')|"time"\ |
241 | 240 |
$(psqlAsBien) --echo-all --set=table='"$*"' $(logInstall*Add)) |
242 | 241 |
endef |
242 |
# table-scope src table's row_num col to allow joining it with other tables |
|
243 | 243 |
|
244 | 244 |
cleanup: _always $(tables:%=%/cleanup) ; |
245 | 245 |
|
Also available in: Unified diff
input.Makefile: Staging tables installation: %/install: Moved "table-scope src table's row_num col" comment outside of define block so it wouldn't be echoed to stdout even when the table is not a src table