Skip to content

Commit 5eb512c

Browse files
committed
fixing a bug where column type changes weren't detected
1 parent d66e6a4 commit 5eb512c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

piccolo/apps/migrations/auto/diffable_table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def __sub__(self, value: DiffableTable) -> TableDelta:
102102
for key, _ in delta.items()
103103
}
104104

105-
if delta:
105+
if delta or (column.__class__ != existing_column.__class__):
106106
alter_columns.append(
107107
AlterColumn(
108108
table_class_name=self.class_name,

0 commit comments

Comments
 (0)