mirror of https://github.com/waku-org/nwaku.git
chore(migration): avoid unnecessarily calling migration (#967)
This commit is contained in:
parent
185485c336
commit
6a60458135
|
@ -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…
Reference in New Issue