From caed5c38016c9efea05f78d3f60178e0ba878cd4 Mon Sep 17 00:00:00 2001 From: Rebecca Breu Date: Sun, 2 Jun 2024 16:32:22 +0200 Subject: [PATCH] Only migrate when bee file version is smaller --- beeref/fileio/sql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beeref/fileio/sql.py b/beeref/fileio/sql.py index de98686..9e2a2b5 100644 --- a/beeref/fileio/sql.py +++ b/beeref/fileio/sql.py @@ -123,7 +123,7 @@ def _migrate(self): 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