Remove all migrations for now
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user