mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
chore(migration): avoid unnecessarily calling migration (#967)
This commit is contained in:
parent
771c741e05
commit
9a0b8688ff
@ -1011,7 +1011,7 @@ when isMainModule:
|
||||
else:
|
||||
sqliteDatabase = dbRes.value
|
||||
|
||||
if not sqliteDatabase.isNil:
|
||||
if not sqliteDatabase.isNil and (conf.persistPeers or conf.persistMessages):
|
||||
# Database initialized. Let's set it up
|
||||
sqliteDatabase.runMigrations(conf) # First migrate what we have
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user