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

Add DB_PREFIX environment variable #1171

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lacymorrow
Copy link
Contributor

This ��allows users to add a prefix to their db tables to allow sharing a db between apps

@juliusmarminge
Copy link
Member

having this as a env var makes no sense to me. you don't change your db table names after init

@lacymorrow
Copy link
Contributor Author

lacymorrow commented Oct 8, 2024

Personally, I use this in a boilerplate repo that I use to spin off every new site or app I develop in.

It's not that the prefix changes often, but it is configuration that shouldn't be hard-coded. This allows me to configure dev/stage/prod deployments without having 3 separate code changes or 3 db instances

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

Successfully merging this pull request may close these issues.

2 participants