Revision 3037
Added by Aaron Marcuse-Kubitza over 12 years ago
sql.py | ||
---|---|---|
1083 | 1083 |
except DuplicateException: |
1084 | 1084 |
new_col.name = next_version(new_col.name) |
1085 | 1085 |
# try again with next version of name |
1086 |
new_col.name = new_typed_col.name # propagate any renaming |
|
1086 | 1087 |
|
1087 | 1088 |
update(db, col.table, [(new_col, expr)], log_level=3) |
1088 | 1089 |
if not nullable: add_not_null(db, new_col) |
... | ... | |
1159 | 1160 |
except DuplicateException: |
1160 | 1161 |
new_col.name = next_version(new_col.name) |
1161 | 1162 |
# try again with next version of name |
1163 |
new_col.name = new_typed_col.name # propagate any renaming |
|
1162 | 1164 |
|
1163 | 1165 |
update(db, table, [(new_col, expr)]) |
1164 | 1166 |
add_index(db, new_col) |
Also available in: Unified diff
sql.py: add_col() callers: Fixed bug where needed to propagate any renaming of typed column back to regular column