Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

Hotfix/table prefix once #2

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

Hotfix/table prefix once #2

wants to merge 2 commits into from

Conversation

JJWesterkamp
Copy link

Prevents table names from being prefixed more than once

Encountered errors due to table names with 2 or 3 prefixes, like cms_cms_cms_<table> where cms_ is the prefix. Errors occured on authenticating CMS users after login, and creating users with cms:user:create. The error might also occur in other model-touching code.

Jeffrey Westerkamp added 2 commits September 9, 2019 08:13
Encountered “cms_cms_cms_<table>” where “cms_” is the prefix.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.883% when pulling ac02abb on JJWesterkamp:hotfix/table-prefix-once into dbd7fec on czim:master.

@JJWesterkamp
Copy link
Author

Interesting detail: the actual code branch that does prefix the table name never runs in the tests, decreasing coverage: https://coveralls.io/builds/25599252/source?filename=src/Sentinel/CmsTablePrefixed.php#L21.

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

Successfully merging this pull request may close these issues.

None yet

2 participants