Revision 2695
Added by Aaron Marcuse-Kubitza about 12 years ago
csv2db | ||
---|---|---|
126 | 126 |
sql_gen.TypedCol('value', 'text'), |
127 | 127 |
sql_gen.TypedCol('error', 'text NOT NULL')] |
128 | 128 |
sql.create_table(db, errors_table, typed_cols, has_pkey=False) |
129 |
index_cols = ['column', sql_gen.EnsureNotNull(sql_gen.Col('value')), |
|
130 |
'error'] |
|
129 |
index_cols = ['column', sql_gen.EnsureNotNull('value'), 'error'] |
|
131 | 130 |
sql.add_index(db, index_cols, errors_table, unique=True) |
132 | 131 |
db.db.commit() |
133 | 132 |
|
Also available in: Unified diff
csv2db: Errors table: index_cols: Remove no longer needed sql_gen.Col() (now done by EnsureNotNull)