Remove all migrations for now

This commit is contained in:
Jacob Windsor
2025-02-19 16:13:10 +01:00
parent 03aba52c6c
commit b64a09c33a
9 changed files with 2 additions and 281 deletions
-9
View File
@@ -83,12 +83,3 @@ def create_db_and_tables():
SQLModel.metadata.create_all(engine)
_seed_db()
def startup_migrations():
print("Running Alembic migrations...")
backend_path = os.path.dirname(os.path.abspath(__file__)) + "/../.."
try:
subprocess.run(["alembic", "upgrade", "head"], check=True, cwd=backend_path)
print("Migrations applied successfully!")
except subprocess.CalledProcessError as e:
print(f"Error applying migrations: {e}")