-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Fix index produces problem when issues/pulls deleted #6973
Conversation
Does xorm support to use expressions on inserts? Most correct solution would be to use |
@lafriks xorm support that but mysql and maybe other databases don't support. |
Hmm we're going to have problems with this if we have a very active repository. This is however a lot better than our current implementation. |
Make L-G-T-M work |
MySQL, postgres and mssql support that, don't know about sqlite tho, need to test that :) |
It should be, see http://www.sqlitetutorial.net/sqlite-functions/sqlite-coalesce/ |
* fix index produces problem when issues/pulls deleted * fix tests * fix tests * fix tests
When an issue of a repo has been deleted( we haven't implement that on gitea currently) or the number counting failed on repository, creating issue/pull will always failed. This PR will fix that problem and when both two issue are created then retry will resolve the problem. This is not the final resolution, but it will not block user creating issue.