fix: Update PostgreSQL database URL for Alembic to use psycopg driver
Some checks failed
Backend CI / lint (push) Failing after 12s
Backend CI / test (push) Failing after 1m33s

This commit is contained in:
JSC
2025-09-18 13:14:01 +02:00
parent 83239cb4fa
commit b87a47f199

View File

@@ -16,7 +16,7 @@ config = context.config
# Set the database URL from settings - convert async URL to sync for alembic # Set the database URL from settings - convert async URL to sync for alembic
sync_db_url = settings.DATABASE_URL.replace("sqlite+aiosqlite", "sqlite") sync_db_url = settings.DATABASE_URL.replace("sqlite+aiosqlite", "sqlite")
sync_db_url = sync_db_url.replace("postgresql+asyncpg", "postgresql") sync_db_url = sync_db_url.replace("postgresql+asyncpg", "postgresql+psycopg")
config.set_main_option("sqlalchemy.url", sync_db_url) config.set_main_option("sqlalchemy.url", sync_db_url)
# Interpret the config file for Python logging. # Interpret the config file for Python logging.