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