Project

General

Profile

« Previous | Next » 

Revision 3054

csv2db: Adding indexes: Fixed bug where sql.add_index()'s ensure_not_null param needed to be renamed to ensure_not_null_

View differences:

bin/csv2db
128 128
        log('Adding indexes')
129 129
        for col in typed_cols[1:]: # exclude pkey
130 130
            log('Adding index on '+col.name)
131
            sql.add_index(db, col.name, table, ensure_not_null=False)
131
            sql.add_index(db, col.name, table, ensure_not_null_=False)
132 132
        
133 133
        log('Vacuuming table')
134 134
        db.db.rollback()

Also available in: Unified diff