Don't load existing JSONL on migrate.
This commit is contained in:
1 parent
a9ef20969e
commit
57a9c60557
1 file changed
+2
-2
@@ -68,9 +68,9 @@ async def migrate_from_sql(
|
||||
sql_db = SQLDB(sql_db_path)
|
||||
await sql_db.init_db()
|
||||
|
||||
# Initialize destination JSON database
|
||||
# Initialize destination JSON database (fresh, don't load existing)
|
||||
json_db = JSONDB(json_db_path)
|
||||
await json_db.load()
|
||||
# Don't call json_db.load() - we want a fresh database, not to load existing
|
||||
|
||||
print(f"Migrating from {sql_db_path} to {json_db_path}...")
|
||||
|
||||
|
||||
Reference in new issue
Block a user