Skip to content

fix: use correct interpolation in alembic url#390

Merged
ankaisen merged 1 commit into
mainfrom
fix/alembic-db-interpolation
Mar 23, 2026
Merged

fix: use correct interpolation in alembic url#390
ankaisen merged 1 commit into
mainfrom
fix/alembic-db-interpolation

Conversation

@ankaisen
Copy link
Copy Markdown
Collaborator

@ankaisen ankaisen commented Mar 23, 2026

📝 Pull Request Summary

This change fixes a DSN escaping bug in MemU for passwords with special characters.


✅ What does this PR do?

Use the DSN in two contexts correctly:
Raw URL-encoded DSN for SQLAlchemy/psycopg connections (so DB auth works).
%-escaped DSN only when setting Alembic config (sqlalchemy.url) to satisfy ConfigParser interpolation rules.


🤔 Why is this change needed?

alembic.ini requires a double escaped of '%' in postgres dsn.


🔍 Type of Change

Please check what applies:

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / cleanup
  • Other (please explain)

✅ PR Quality Checklist

  • PR title follows the conventional format (feat:, fix:, docs:)
  • Changes are limited in scope and easy to review
  • Documentation updated where applicable
  • No breaking changes (or clearly documented)
  • Related issues or discussions linked

📌 Optional

  • Screenshots or examples added (if applicable)
  • Edge cases considered
  • Follow-up tasks mentioned

@ankaisen ankaisen merged commit fd87ceb into main Mar 23, 2026
8 checks passed
@ankaisen ankaisen deleted the fix/alembic-db-interpolation branch March 23, 2026 07:30
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