As stated on this issue, the connections objects may be set without decoding. Therefore, the stored hash can be a bytes object. This is an issue that clashes with
schema_out_of_date false positive: different type will force inequality checks to always be True
IndexMigration expects previous_hash to be of str type
This small check and reassignment for stored_hash, fixes the issue and enables correct detection.
Describe your changes
As stated on this issue, the connections objects may be set without decoding. Therefore, the stored hash can be a
bytes
object. This is an issue that clashes withschema_out_of_date
false positive: different type will force inequality checks to always beTrue
IndexMigration
expectsprevious_hash
to be ofstr
typeThis small check and reassignment for
stored_hash
, fixes the issue and enables correct detection.