Ensure a later migration if user downgraded PKC

This commit is contained in:
Croneter 2018-05-14 19:58:58 +02:00
parent ce284f668a
commit 6541b16810

View file

@ -11,6 +11,8 @@ def check_migration():
last_migration = settings('last_migrated_PKC_version')
if last_migration == v.ADDON_VERSION:
log.info('Already migrated to PKC version %s' % v.ADDON_VERSION)
# Ensure later migration if user downgraded PKC!
settings('last_migrated_PKC_version', value=v.ADDON_VERSION)
return
if not compare_version(v.ADDON_VERSION, '1.8.2'):