Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions aredis_om/model/migrations/migrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,9 @@ async def detect_migrations(self):
continue

stored_hash = await conn.get(hash_key)
if isinstance(stored_hash, bytes):
stored_hash = stored_hash.decode('utf-8')

schema_out_of_date = current_hash != stored_hash

if schema_out_of_date:
Expand Down