Skip to content

Commit

Permalink
fix(stores): allow pg credentials in connection string (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-dixon authored Nov 19, 2024
1 parent cb42f09 commit ed26fca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/ell/stores/migrations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def init_or_migrate_database(engine) -> None:
existing_tables = set(inspector.get_table_names())
has_our_tables = bool(our_tables_v1 & existing_tables) # Intersection
has_alembic = 'ell_alembic_version' in existing_tables
alembic_cfg = get_alembic_config(engine.url)

alembic_cfg = get_alembic_config(engine.url.render_as_string(hide_password=False))
try:
if has_our_tables and not has_alembic:
# Case 1: Existing database with our tables but no Alembic
Expand Down

0 comments on commit ed26fca

Please sign in to comment.