feat(sqlalchemy): format backend

This commit is contained in:
Jonathan Rohde committed 2024-06-27 07:48:08 +02:00
1 parent 320e658595
commit c134eab27a
21 files changed
+232 -289

No files matched your search

+3 -1
View File
@@ -175,7 +175,9 @@ https://github.com/open-webui/open-webui
def run_migrations():
env = os.environ.copy()
env["DATABASE_URL"] = DATABASE_URL
migration_task = subprocess.run(["alembic", f"-c{BACKEND_DIR}/alembic.ini", "upgrade", "head"], env=env)
migration_task = subprocess.run(
["alembic", f"-c{BACKEND_DIR}/alembic.ini", "upgrade", "head"], env=env
)
if migration_task.returncode > 0:
raise ValueError("Error running migrations")