Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: drizzle init args #8818

Merged
merged 1 commit into from
Oct 22, 2024
Merged

fix: drizzle init args #8818

merged 1 commit into from
Oct 22, 2024

Conversation

denolfe
Copy link
Member

@denolfe denolfe commented Oct 21, 2024

Adjust drizzle init for changes in drizzle 0.35.0 https://github.com/drizzle-team/drizzle-orm/releases/tag/0.35.0

The pool/connection should now be passed as the client arg when initializing drizzle.

this.drizzle = drizzle({
  client: this.poolOptions ? new VercelPool(this.poolOptions) : sql,
  logger,
  schema: this.schema,
})

This was causing an issue where running payload migrate on Vercel was causing drizzle to attempt to 127.0.0.1:5432 instead of the specified environment variable in the adapter 🤔

@denolfe denolfe merged commit 9fb8665 into beta Oct 22, 2024
58 checks passed
@denolfe denolfe deleted the fix/drizzle-init-args branch October 22, 2024 01:39
Copy link

🚀 This is included in version v3.0.0-beta.117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant