Revision 5021
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
1189 | 1189 |
row_num_col_def. It will be the primary key.''' |
1190 | 1190 |
col_def = copy.copy(row_num_col_def) |
1191 | 1191 |
col_def.name = name |
1192 |
add_col(db, table, col_def, comment='', log_level=3) |
|
1192 |
add_col(db, table, col_def, comment='', if_not_exists=True, log_level=3)
|
|
1193 | 1193 |
|
1194 | 1194 |
#### Indexes |
1195 | 1195 |
|
Also available in: Unified diff
sql.py: add_row_num(): Use if_not_exists in order to abort if the column already exists rather than adding a version #