Revision 2824
Added by Aaron Marcuse-Kubitza over 12 years ago
csv2db | ||
---|---|---|
130 | 130 |
sql_gen.TypedCol('error', 'text NOT NULL'), |
131 | 131 |
] |
132 | 132 |
sql.create_table(db, errors_table, typed_cols, has_pkey=False) |
133 |
index_cols = ['column', sql_gen.EnsureNotNull('value'), 'error_code', |
|
134 |
'error'] |
|
133 |
index_cols = ['column', 'value', 'error_code', 'error'] |
|
135 | 134 |
sql.add_index(db, index_cols, errors_table, unique=True) |
136 | 135 |
db.db.commit() |
137 | 136 |
|
Also available in: Unified diff
csv2db: Errors table: Removed no longer needed sql_gen.EnsureNotNull() because this is now added automatically