Skip to content

Add Alembic migrations setup#4

Merged
Orlando-Alvarez merged 2 commits into
mainfrom
feat/add-alembic-migrations
May 23, 2026
Merged

Add Alembic migrations setup#4
Orlando-Alvarez merged 2 commits into
mainfrom
feat/add-alembic-migrations

Conversation

@Orlando-Alvarez

Copy link
Copy Markdown
Owner

Summary

This pull request adds Alembic database migration support to Ticket-API.

Changes

  • Added Alembic as a project dependency.
  • Added Alembic configuration files.
  • Configured Alembic to read the existing DATABASE_URL from the application settings.
  • Connected Alembic to the existing SQLAlchemy Base.metadata.
  • Added the initial migration for the current database models:
    • users
    • tickets
    • incidents
  • Updated the README with basic migration commands.

Validation

  • Confirmed existing tests pass with:
python -m pytest
  • Confirmed the initial migration can be applied with:
python -m alembic upgrade head
  • Confirmed the database schema includes the expected tables:
    • users
    • tickets
    • incidents
    • alembic_version

Notes

  • This PR does not add CRUD endpoints.
  • This PR does not add authentication.
  • This PR does not add cloud deployment configuration.
  • This PR does not run migrations automatically when the FastAPI app starts.

@Orlando-Alvarez Orlando-Alvarez merged commit 644b710 into main May 23, 2026
2 checks passed
@Orlando-Alvarez Orlando-Alvarez deleted the feat/add-alembic-migrations branch May 23, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant