-
-
Notifications
You must be signed in to change notification settings - Fork 106
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
v3 Upgrade Guide Missing Steps #217
Comments
Hi @ashleyshenton, Thanks for the heads up, I've released v3 too soon, woops 😬 I'll merge your PR in an instant As for the |
Hi @rubenvanassche thank you for replying. No it came as part of the package when I installed. It's still there in the latest v2 release and the current v3. |
Oh good point, damn completely looked over that function. I'll fix the guide |
Haha no worries. Thanks for accepting my PR. |
No problem, time for vacation for me 🏖️ |
I upgraded to the v3 release today but had issues with the database repository. The issue in particular was a missing default value for the locked column.
I had a look at the diff between 3.0.0 and 2.8.3 and noticed that the migration has changed. The changes add a default value of
false
to the locked column. There is another change involving adding a unique index. This will also cause issues for those updating as the v3 release has changed to use upserts which depend on a unique constraint. This needs adding to the upgrade guide to make anyone upgrading aware.I've used this in my project.
I would also advise that the original index is dropped, as the new unique one covers all queries and is used over the old one. I know this thanks to @aarondfrancis "left to right, no skipping". This isn't completely necessary though so is commented out in the above snippet.
Here are some examples from a project where I use this package.
Notice how the composite unique index is used even when querying on group alone. I've looked through the database repository and all queries are written in a way that this index will be used.
The text was updated successfully, but these errors were encountered: