Revision 3440
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/csv2db | ||
---|---|---|
50 | 50 |
|
51 | 51 |
log('Creating errors table') |
52 | 52 |
errors_table = sql_io.errors_table(db, table, if_exists=False) |
53 |
sql.drop_table(db, errors_table) |
|
53 |
if errors_table_only: sql.drop_table(db, errors_table)
|
|
54 | 54 |
typed_cols = [ |
55 | 55 |
sql_gen.TypedCol('column', 'text', nullable=False), |
56 | 56 |
sql_gen.TypedCol('value', 'text'), |
Also available in: Unified diff
csv2db: Creating errors table: Only drop existing errors table in errors_table_only mode, so that errors tables are not unintentionally deleted when `make inputs/install` is run. This helps to make `make install` idempotent.