Revision 3104
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
1106 | 1106 |
if not nullable: add_not_null(db, new_col) |
1107 | 1107 |
add_index(db, new_col) |
1108 | 1108 |
|
1109 |
col.table.index_cols[col.name] = new_col |
|
1109 |
col.table.index_cols[col.name] = new_col.name
|
|
1110 | 1110 |
|
1111 | 1111 |
# Controls when ensure_not_null() will use index columns |
1112 | 1112 |
not_null_index_cols_min_rows = 0 # rows; initially always use index columns |
Also available in: Unified diff
sql_gen.py: index_cols: Store just the name of the index column, and add the table in index_col(), in case the table is ever copied and renamed