Only migrate when bee file version is smaller

This commit is contained in:
Rebecca Breu 2024-06-02 16:32:22 +02:00
parent 960337887f
commit caed5c3801

View file

@ -123,7 +123,7 @@ class SQLiteIO:
version = self.fetchone('PRAGMA user_version')[0]
logger.debug(f'Found bee file version: {version}')
if version == USER_VERSION:
if version >= USER_VERSION:
logger.debug('Version ok; no migrations necessary')
return