You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models
Lunny Xiao da58bb85fa
Upgrade xorm to new version which supported update join for all supported databases (#28590)
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.
1 year ago
..
actions Refactor deletion (#28610) 1 year ago
activities Refactor timeutil package (#28623) 1 year ago
admin
asymkey Refactor timeutil package (#28623) 1 year ago
auth Avoid cycle-redirecting user/login page (#28636) 1 year ago
avatars Refactor some legacy code and remove unused code (#28622) 1 year ago
db Avoid cycle-redirecting user/login page (#28636) 1 year ago
dbfs
fixtures Fix comment permissions (#28213) 1 year ago
git Refactor some legacy code and remove unused code (#28622) 1 year ago
issues Upgrade xorm to new version which supported update join for all supported databases (#28590) 1 year ago
migrations Fix migration test (#28659) 1 year ago
organization Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
packages Revert "packages: Calculate package size quota using package creator ID instead of owner ID (#28007)" (#28049) 1 year ago
perm Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
project Fix comment permissions (#28213) 1 year ago
pull Add Index to pull_auto_merge.doer_id (#27811) 1 year ago
repo Refactor deletion (#28610) 1 year ago
secret Use db.Find instead of writing methods for every object (#28084) 1 year ago
shared/types
system Refactor deletion (#28610) 1 year ago
unit
unittest Upgrade xorm (#27673) 1 year ago
user Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
webhook Refactor deletion (#28610) 1 year ago
error.go
fixture_generation.go Replace more db.DefaultContext (#27628) 1 year ago
fixture_test.go Replace more db.DefaultContext (#27628) 1 year ago
main_test.go
org.go Refactor deletion (#28610) 1 year ago
org_team.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
org_team_test.go
org_test.go Replace more db.DefaultContext (#27628) 1 year ago
repo.go Refactor deletion (#28610) 1 year ago
repo_test.go
repo_transfer.go
repo_transfer_test.go