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

use a SCHEMA for database tables #305

Open
hauke-97 opened this issue May 8, 2024 · 1 comment
Open

use a SCHEMA for database tables #305

hauke-97 opened this issue May 8, 2024 · 1 comment
Labels

Comments

@hauke-97
Copy link

hauke-97 commented May 8, 2024

Can I use a SCHEMA for all tables needed for PHP-Auth?
I created all tables with the prefix phpauth., but the code doesn´t refer to these tables. Instead of, another table named users is referenced. How can I define the SCHEMA, that should be looked up?

@ocram ocram added the question label May 16, 2024
@ocram
Copy link
Contributor

ocram commented May 16, 2024

Thank you!

Do you just want to rename all the tables needed for this library to start with a shared prefix, such as phpauth. or phpauth_?

From the README:

Should your database tables for this library need a common prefix, e.g. my_users instead of users (and likewise for the other tables), pass the prefix (e.g. my_) as the third parameter to the constructor, which is named $dbTablePrefix. This is optional and the prefix is empty by default.

Does this help? Or do you need something else?

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

No branches or pull requests

2 participants