Start plugin postgres db if separate
This commit is contained in:
parent
800114b837
commit
cecda7c32b
1 changed files with 2 additions and 0 deletions
|
@ -139,6 +139,8 @@ class Maubot(Program):
|
||||||
try:
|
try:
|
||||||
await self.db.start()
|
await self.db.start()
|
||||||
await self.state_store.upgrade_table.upgrade(self.db)
|
await self.state_store.upgrade_table.upgrade(self.db)
|
||||||
|
if self.plugin_postgres_db and self.plugin_postgres_db is not self.db:
|
||||||
|
await self.plugin_postgres_db.start()
|
||||||
if self.crypto_db and self.crypto_db is not self.db:
|
if self.crypto_db and self.crypto_db is not self.db:
|
||||||
await self.crypto_db.start()
|
await self.crypto_db.start()
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue