feat(sqlalchemy): format backend
This commit is contained in:
1 parent
320e658595
commit
c134eab27a
21 files changed
+232
-289
No files matched your search
+3
-1
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user