-
Notifications
You must be signed in to change notification settings - Fork 24
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
DB duplicate key error when deleting and shifting services #114
Comments
We're deleting the services on the 18th June May need to change the logic to |
@edwhiting maybe you could have a look at fixing that UPDATE query as mentioned above... |
+1 |
Again
|
+1 |
Another one. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2021-03-28-2' for key 'datecong' Following a request to delete-all services on a given date and YES move following services to close the gap.
|
I can reproduce this when I create a mid-week service then delete it. |
If I have services on Sunday 13th, Wednesday 16th and Sunday 20th The "move everything back" logic should only be available if there is 7 days between this service, the previous service, and the next service. Otherwise it should just delete the service and leave everything else alone. |
The text was updated successfully, but these errors were encountered: