Skip to content

Commit 6bcfa66

Browse files
committed
bumped version
1 parent 85e5a74 commit 6bcfa66

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changes
22
=======
33

4+
0.17.1
5+
------
6+
Fixing a bug with ``SchemaSnapshot`` if column types were changed in migrations
7+
- the snapshot didn't reflect the changes.
8+
49
0.17.0
510
------
611
* Migrations now directly import ``Column`` classes - this allows users to

piccolo/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__VERSION__ = "0.17.0"
1+
__VERSION__ = "0.17.1"

piccolo/apps/migrations/auto/schema_snapshot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ def get_snapshot(self) -> t.List[DiffableTable]:
8686
!= alter_column.old_column_class
8787
):
8888
if alter_column.column_class is not None:
89-
new_column = alter_column.column_class()
89+
new_column = alter_column.column_class(
90+
**column._meta.params
91+
)
9092
new_column._meta = column._meta
9193
table.columns[index] = new_column
9294

0 commit comments

Comments
 (0)