Skip to content

Conversation

@madhav165
Copy link
Collaborator

@madhav165 madhav165 commented Jul 4, 2025

🐛 Bug-fix PR

📌 Summary

Start alembic revision history so subsequent changes can build off it

💡 Fix Description

  • Creates the alembic_version table in empty database and stores the latest revision with alembic stamp head
  • If tables exist, does alembic upgrade head
  • Implements migration in a function called from main rather than as a dep

✅ Checklist

  • Code formatted (make black isort pre-commit)
  • No secrets/credentials committed

@crivetimihai
Copy link
Member

  • rm mcp.db; make test
  • make venv install serve # After the redis fix, know issue in Fix/redis import lazy #235
  • make smoketest
  • make docker-prod docker-run-ssl-host
  • export MCPGATEWAY_BEARER_TOKEN=$(python3 -m mcpgateway.utils.create_jwt_token --username admin --exp 0 --secret my-test-key); curl -sk -H "Authorization: Bearer $MCPGATEWAY_BEARER_TOKEN" https://localhost:4444/version
  • make docker-stop compose-down compose-rm; docker volume rm mcp-context-forge_pgdata; make compose-up

Copy link
Member

@crivetimihai crivetimihai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and merged

@crivetimihai crivetimihai merged commit 738ca8a into main Jul 4, 2025
23 checks passed
@crivetimihai crivetimihai deleted the modify-alembic-migration branch July 4, 2025 16:34
vk-playground pushed a commit to vk-playground/mcp-context-forge that referenced this pull request Sep 14, 2025
* Alembic bootstrap with alembic_version table
Signed-off-by: Madhav Kandukuri <[email protected]>

* Remove migration dependence
Signed-off-by: Madhav Kandukuri <[email protected]>
vk-playground pushed a commit to vk-playground/mcp-context-forge that referenced this pull request Sep 14, 2025
* Alembic bootstrap with alembic_version table
Signed-off-by: Madhav Kandukuri <[email protected]>

* Remove migration dependence
Signed-off-by: Madhav Kandukuri <[email protected]>
vk-playground pushed a commit to vk-playground/mcp-context-forge that referenced this pull request Sep 16, 2025
* Alembic bootstrap with alembic_version table
Signed-off-by: Madhav Kandukuri <[email protected]>

* Remove migration dependence
Signed-off-by: Madhav Kandukuri <[email protected]>
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.

3 participants