mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 09:55:07 +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