PHP-Auth icon indicating copy to clipboard operation
PHP-Auth copied to clipboard

use a SCHEMA for database tables

Open hauke-97 opened this issue 1 year ago • 1 comments

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?

hauke-97 avatar May 08 '24 04:05 hauke-97

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?

ocram avatar May 16 '24 16:05 ocram