Revision 2873
Added by Aaron Marcuse-Kubitza over 12 years ago
bin/csv2db | ||
---|---|---|
114 | 114 |
log('Adding indexes') |
115 | 115 |
for col in typed_cols[1:]: # exclude pkey |
116 | 116 |
log('Adding index on '+col.name) |
117 |
sql.add_index(db, col.to_Col(), table)
|
|
117 |
sql.add_index(db, col.name, table)
|
|
118 | 118 |
db.db.commit() |
119 | 119 |
|
120 | 120 |
log('Vacuuming table') |
Also available in: Unified diff
csv2db: Adding indexes: Fixed bug where col.to_Col() could not be used because sql.add_index() does not support name-only columns (plain strings are OK, though)