# HG changeset patch # User Sylvain Thénault # Date 1455224448 -3600 # Node ID 66fb68c25f8309b0af38775a302ade237b732fd5 # Parent 5758ba784ebd580f19216a228a7f6cd16b7811c0 [migration] fix crash on 3.22 upgrade if entity type doesn't exist in fsschema (pending removal) diff -r 5758ba784ebd -r 66fb68c25f83 misc/migration/3.22.0_Any.py --- a/misc/migration/3.22.0_Any.py Thu Feb 04 12:00:23 2016 +0100 +++ b/misc/migration/3.22.0_Any.py Thu Feb 11 22:00:48 2016 +0100 @@ -12,7 +12,7 @@ sql("SET TIME ZONE '%s'" % timezone) for entity in schema.entities(): - if entity.final: + if entity.final or entity.type not in fsschema: continue change_attribute_type(entity.type, 'creation_date', 'TZDatetime', ask_confirm=False) change_attribute_type(entity.type, 'modification_date', 'TZDatetime', ask_confirm=False)