Skip to content

Commit f877e3f

Browse files
amosttAygentic
andcommitted
fix(ci): use correct psycopg driver URL in generate-client
Change DATABASE_URL from postgresql:// to postgresql+psycopg:// to use the psycopg v3 driver that's installed in the project dependencies. Error was: ModuleNotFoundError: No module named 'psycopg2' The project uses psycopg (v3), not psycopg2. SQLAlchemy needs the postgresql+psycopg:// scheme to use the correct driver. Related to CUR-29 🤖 Generated by Aygentic Co-Authored-By: Aygentic <[email protected]>
1 parent c85a0d0 commit f877e3f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/generate-client.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
FIRST_SUPERUSER: [email protected]
4545
FIRST_SUPERUSER_PASSWORD: just-for-generating-client
4646
# Supabase and Redis dummy values for client generation
47-
DATABASE_URL: postgresql://postgres:password@localhost:5432/app
47+
# Use postgresql+psycopg:// for psycopg v3 driver
48+
DATABASE_URL: postgresql+psycopg://postgres:password@localhost:5432/app
4849
SUPABASE_URL: https://dummy.supabase.co
4950
SUPABASE_ANON_KEY: dummy-anon-key
5051
SUPABASE_SERVICE_KEY: dummy-service-key

0 commit comments

Comments
 (0)