Revision 5000
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
1188 | 1188 |
row_num_col_def. It will be the primary key.''' |
1189 | 1189 |
col_def = copy.copy(row_num_col_def) |
1190 | 1190 |
col_def.name = name |
1191 |
add_col(db, table, col_def, log_level=3) |
|
1191 |
add_col(db, table, col_def, comment='', log_level=3)
|
|
1192 | 1192 |
|
1193 | 1193 |
#### Indexes |
1194 | 1194 |
|
Also available in: Unified diff
sql.py: add_row_num(): Add distinguishing comment to ADD COLUMN statement so that it will be cached. The distinguishing comment is required because sometimes column names are truncated, leading to unwanted collisions with previously-cached ADD COLUMN statements. It provides a way of distinguishing the full column name behind a particular ADD COLUMN statement.