Project

General

Profile

« Previous | Next » 

Revision 5028

csv2db: Removed no longer used has_row_num param

View differences:

inputs/input.Makefile
231 231
# The joined tables must be suffixed with ".src" to prevent the creation of a
232 232
# row_num column, which collides during joins.
233 233
isJoinedTable = $(filter %.src,$*)
234
hasRowNum = $(if $(isJoinedTable),,1)
235 234

  
236 235
%/install: _always
237 236
	$(if $(isRef),$(exportHeader),$(if $(nonXml),$(import_install_)))
238 237
import_install_ = (prefix=; . $(bin)/vegbien_dest; "time" nice -n +5\
239
env schema=$(datasrc) table=$* has_row_num=$(hasRowNum) $(bin)/csv2db\
240
$(catSrcs) $(logInstall*))
238
env schema=$(datasrc) table=$* $(bin)/csv2db $(catSrcs) $(logInstall*))
241 239

  
242 240
##### Maps building
243 241

  
bin/csv2db
31 31
    # Get config from env vars
32 32
    table = opts.get_env_var('table', None, env_names)
33 33
    schema = opts.get_env_var('schema', 'public', env_names)
34
    has_row_num = opts.env_flag('has_row_num', True, env_names)
35 34
    db_config = opts.get_env_vars(sql.db_config_names, None, env_names)
36 35
    verbosity = util.cast(float, opts.get_env_var('verbosity', 3, env_names))
37 36
    

Also available in: Unified diff