We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf2a4b7 commit 544aa3bCopy full SHA for 544aa3b
1 file changed
app/db/init.py
@@ -12,7 +12,9 @@
12
def run_migrations():
13
"""Run Alembic migrations to ensure the schema is up to date."""
14
try:
15
- subprocess.run(["alembic", "revision", "--autogenerate", "-m", "auto"], check=True)
+ subprocess.run(
16
+ ["alembic", "revision", "--autogenerate", "-m", "auto"], check=True
17
+ )
18
subprocess.run(["alembic", "upgrade", "head"], check=True)
19
print("Generated and applied database migrations successfully.")
20
except subprocess.CalledProcessError as e:
0 commit comments