Skip to content

[Bug]: Alembic migration is broken #478

@madhav165

Description

@madhav165

🐞 Bug Summary

bootstrap_db.py is expected to create alembic_version table in an empty db or use it to run correct alembic upgrades


🧩 Affected Component

Select the area of the project impacted:

  • mcpgateway - API
  • mcpgateway - UI (admin panel)
  • mcpgateway.wrapper - stdio wrapper
  • Federation or Transports
  • CLI, Makefiles, or shell scripts
  • Container setup (Docker/Podman/Compose)
  • Other (explain below)
    Alembic migrations would break when alembic_version table is not present. It would try to start from the first script.

🤔 Expected Behavior

When server starts, it creates alembic_version table in empty db or applies correct migrations from the history in the table.


Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageIssues / Features awaiting triage

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions