Go to file
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
.cursor/rules feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
.gitea/workflows refactor: Optimize Dockerfiles and deployment workflow for improved performance and reliability 2025-06-01 16:26:49 +02:00
be Fix(alembic): Resolve TypeError in migration script and remove redundant migration call 2025-06-01 17:16:41 +00:00
docs feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00
fe fix ig 2025-06-01 16:49:21 +02:00
docker-compose.prod.yml refactor: Update Docker configurations for improved environment variable handling 2025-06-01 15:41:42 +02:00
docker-compose.yml Fix(docker): Run Alembic migrations on container startup 2025-06-01 17:10:40 +00:00
env.production.template feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
mitlist_doc.md feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00
notes.md feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
PRODUCTION.md feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00