Project

General

Profile

« Previous | Next » 

Revision 2824

csv2db: Errors table: Removed no longer needed sql_gen.EnsureNotNull() because this is now added automatically

View differences:

bin/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