Skip to content

Commit

Permalink
feat(app): update version
Browse files Browse the repository at this point in the history
  • Loading branch information
MorvanZhou committed Dec 25, 2024
1 parent 7d6f058 commit 4edc859
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/retk/local_manager/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def __migrate_older_to_0_2_9(dot_rethink: Dict) -> Dict:
return dot_rethink


def __migrate_older_to_0_3_0(dot_rethink: Dict) -> Dict:
"""Migrate the database to version 0.3.0.
def __migrate_older_to_0_3_1(dot_rethink: Dict) -> Dict:
"""Migrate the database to version 0.3.1.
"""
v = "0.3.0"
v = "0.3.1"
dot_rethink = __migrate_older_to_0_2_9(dot_rethink)
if "llmApi" not in dot_rethink["settings"]:
dot_rethink["settings"]["llmApi"] = {}
Expand Down Expand Up @@ -85,6 +85,6 @@ def to_latest_version():
logger.debug(".rethink.json is not found. The database is empty.")
return

if __version_less_than(dot_rethink, version="0.3.0"):
__migrate_older_to_0_3_0(dot_rethink)
if __version_less_than(dot_rethink, version="0.3.1"):
__migrate_older_to_0_3_1(dot_rethink)
return

0 comments on commit 4edc859

Please sign in to comment.