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

Allow custom table prefix #126

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

ajgarlag
Copy link
Contributor

@ajgarlag ajgarlag commented Mar 7, 2023

I need to configure the table name in order to store oauth2 data in a custom PostgreSQL schema, so I'd like to have the option to configure the table name prefix.

What do you think?

@@ -184,6 +184,11 @@ private function createPersistenceNode(): NodeDefinition
->cannotBeEmpty()
->defaultValue('default')
->end()
->scalarNode('table_prefix')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reference configuration file in the documentation (https://github.com/thephpleague/oauth2-server-bundle/blob/v0.4.1/docs/index.md#installation) needs to be updated with this option too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@ajgarlag ajgarlag force-pushed the feauture/table-prefix branch from c5991a2 to c3fcb1a Compare March 7, 2023 16:46
@chalasr
Copy link
Member

chalasr commented Apr 23, 2023

Thanks Antonio.

@chalasr chalasr merged commit b1036a3 into thephpleague:master Apr 23, 2023
@ajgarlag ajgarlag deleted the feauture/table-prefix branch November 22, 2024 09:13
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.

4 participants