Ability to choose a table prefix to allow for multi project schema #5590
MendyLanda
started this conversation in
Feature Requests & Ideas
Replies: 1 comment 1 reply
-
This is a great suggestion! I think this will be very easy to add with our change to custom table names #5045. In this branch, all the table names are assigned from a new function so this change is only going to be a few lines of code. I can get this added after that is merged. It had a few errors in testing that just need a little tweaking before merging and releasing. Thanks for the suggestion! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Normally if drizzle is fully available, something like this will be possible:
This in conjunction with the filter in the drizzle config, will allow developers to have multiple projects in the same db schema but keep them separated to each project.
From looking at payload's source code, this will be a relatively simple implementation and I will be happy to make a PR if you want to have this feature.
For more details:
https://orm.drizzle.team/docs/goodies#multi-project-schema
Beta Was this translation helpful? Give feedback.
All reactions