gitea/models
Giteabot 18da3f8483
Upgrade xorm to new version which supported update join for all supported databases (#28590) (#28668)
Backport #28590 by @lunny

Fix https://github.com/go-gitea/gitea/pull/28547#issuecomment-1867740842

Since https://gitea.com/xorm/xorm/pulls/2383 merged, xorm now supports
UPDATE JOIN.
To keep consistent from different databases, xorm use
`engine.Join().Update`, but the actural generated SQL are different
between different databases.

For MySQL, it's `UPDATE talbe1 JOIN table2 ON join_conditions SET xxx
Where xxx`.

For MSSQL, it's `UPDATE table1 SET xxx FROM TABLE1, TABLE2 WHERE
join_conditions`.

For SQLITE per https://www.sqlite.org/lang_update.html, sqlite support
`UPDATE table1 SET xxx FROM table2 WHERE join conditions` from
3.33.0(2020-8-14).

POSTGRES is the same as SQLITE.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-12-31 13:57:36 +08:00
..
actions Only check online runner when detecting matching runners in workflows (#28286) (#28512) 2023-12-19 04:06:31 +00:00
activities
admin
asymkey Retry SSH key verification with additional CRLF if it failed (#28392) (#28464) 2023-12-14 12:50:26 +08:00
auth Avoid cycle-redirecting user/login page (#28636) (#28658) 2023-12-30 20:50:08 +08:00
avatars Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
db Avoid cycle-redirecting user/login page (#28636) (#28658) 2023-12-30 20:50:08 +08:00
dbfs
fixtures
git Also sync DB branches on push if necessary (#28361) (#28403) 2023-12-11 06:16:56 +00:00
issues Upgrade xorm to new version which supported update join for all supported databases (#28590) (#28668) 2023-12-31 13:57:36 +08:00
migrations handle repository.size column being NULL in migration v263 (#28336) (#28363) 2023-12-05 14:51:56 +00:00
organization
packages
perm
project
pull
repo Refactor SSH clone URL generation code (#28421) (#28480) 2023-12-15 14:54:40 +08:00
secret
shared/types
system
unit
unittest
user enable system users search via the API (#28013) (#28018) 2023-12-08 21:46:08 +00:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go