Move alembic_version table existence check to mautrix-python

This commit is contained in:
Tulir Asokan
2019-08-09 23:30:25 +03:00
parent 354fcdc84b
commit 8cab2fdcb6
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -58,10 +58,6 @@ class TelegramBridge(Bridge):
def prepare_db(self) -> None:
super().prepare_db()
if not self.db.has_table("alembic_version"):
self.log.critical("alembic_version table not found. "
"Did you forget to `alembic upgrade head`?")
sys.exit(10)
init_db(self.db)
self.session_container = AlchemySessionContainer(
engine=self.db, table_base=Base, session=False,