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

feat: add options object where you can specify a schema #11344

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlvdh
Copy link

@jlvdh jlvdh commented Jul 7, 2024

☕️ Reasoning

The @auth/kysely-adapter currently depends on the tables to be configured in postgres. But it's good practice to add the tables in their own schema (eg auth.User, auth.Session, etc.) This PR would enable the configuration of a schema that is used for all the necessary tables by using: KyselyAdapter(db, {schemaName: "auth"})

Interested to hear if this type of feature would be eligible to merge in the project?

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

@jlvdh jlvdh requested a review from ndom91 as a code owner July 7, 2024 10:56
Copy link

vercel bot commented Jul 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 7, 2024 11:00am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Jul 7, 2024 11:00am

Copy link

vercel bot commented Jul 7, 2024

@jlvdh is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added adapters Changes related to the core code concerning database adapters kysely labels Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Changes related to the core code concerning database adapters kysely
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant