Skip to content

Commit

Permalink
Only migrate when bee file version is smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
rbreu committed Jun 2, 2024
1 parent 9603378 commit caed5c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beeref/fileio/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit caed5c3

Please sign in to comment.