transform=True for differing column types, refs #467

This commit is contained in:
Simon Willison 2022-08-27 16:00:54 -07:00
commit 6d4efd2949
2 changed files with 8 additions and 1 deletions

View file

@ -912,7 +912,7 @@ class Database:
if missing_columns:
for col_name, col_type in missing_columns.items():
table.add_column(col_name, col_type)
if missing_columns or columns_to_drop:
if missing_columns or columns_to_drop or columns != existing_columns:
should_transform = True
# Do we need to change the column order?
if (