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,
+1 -1
View File
@@ -32,7 +32,7 @@ setuptools.setup(
install_requires=[
"aiohttp>=3.0.1,<4",
"mautrix>=0.4.0.dev52,<0.5",
"mautrix>=0.4.0.dev53,<0.5",
"SQLAlchemy>=1.2.3,<2",
"alembic>=1.0.0,<2",
"commonmark>=0.8.1,<1",