mitlist/be/app
google-labs-jules[bot] 287155a783 Fix(alembic): Resolve TypeError in migration script and remove redundant migration call
This commit addresses two issues:
1. A `TypeError` during Alembic migrations (`upgrade() takes 0 positional
   arguments but 1 was given`). This was caused by the `upgrade` and
   `downgrade` functions in the initial migration script not accepting
   any arguments, while the custom migration runner in `migrations.py`
   was passing a context argument.
   - Modified `be/alembic/versions/0001_initial_schema.py` to ensure
     `upgrade` and `downgrade` functions accept a `context` argument.

2. Redundant execution of migrations. Migrations were being triggered
   both by the `entrypoint.sh` script and within the FastAPI application's
   startup event in `app/main.py`.
   - Commented out the `await run_migrations()` call in `app/main.py`
     to ensure migrations are only handled by the `entrypoint.sh` script.

These changes should ensure that database migrations run correctly and only
once when the backend container starts.
2025-06-01 17:16:41 +00:00
..
api feat: Implement refresh token functionality in authentication flow 2025-05-25 12:51:02 +02:00
core Refactor: Polish backend based on review 2025-06-01 14:26:36 +02:00
crud feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
db feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
jobs feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
models Refactor: Reset Alembic migrations and consolidate models. 2025-06-01 14:26:37 +02:00
schemas feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
__init__.py weeee💃 2025-03-30 16:02:49 +02:00
auth.py feat: Implement refresh token functionality in authentication flow 2025-05-25 12:51:02 +02:00
config.py feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
database.py feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
main.py Fix(alembic): Resolve TypeError in migration script and remove redundant migration call 2025-06-01 17:16:41 +00:00
models.py Refactor: Reset Alembic migrations and consolidate models. 2025-06-01 14:26:37 +02:00