-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Lock] create lock table if it does not exist #44370
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
Conversation
Can you please add a test? |
@derrabus I'd be happy to, but given this is my first contribution to Symfony and none of the other sites have tests for this case I would need some guidance. |
@derrabus check the last commit, perhaps that would work? If remove the |
Thank you @martinssipenko for taking care of this regression. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In PdoStore there is an extra check that assert there is no active transaction.
Shouldn't we do the same here ?
Exact, there was the same check for DBAL in 5.3. https://github.com/symfony/symfony/blob/5.3/src/Symfony/Component/Lock/Store/PdoStore.php#L143 It is wise to add it back. |
could you open a PR to handle it @martinssipenko? |
Fix bug where tables are not automatically created when using
Symfony\Component\Lock\Store\DoctrineDbalStore
.