forgejo/models
Lunny Xiao 4c29c75968
Fix session key conflict with database keyword ()
This is a regression from  .
`builder.Cond` will not add `` ` `` automatically but xorm method
`Get/Find` adds `` ` ``.

This PR also adds tests to prevent the method from being implemented
incorrectly. The tests are added in `integrations` to test every
database.
2023-12-27 15:24:23 +08:00
..
actions Refactor deletion () 2023-12-25 21:25:29 +01:00
activities Use db.Find instead of writing methods for every object () 2023-11-24 03:49:41 +00:00
admin
asymkey Refactor deletion () 2023-12-25 21:25:29 +01:00
auth Fix session key conflict with database keyword () 2023-12-27 15:24:23 +08:00
avatars Final round of db.DefaultContext refactor () 2023-10-14 08:37:24 +00:00
db Refactor deletion () 2023-12-25 21:25:29 +01:00
dbfs
fixtures Fix comment permissions () 2023-11-25 17:21:21 +00:00
git Improve ObjectFormat interface () 2023-12-19 07:20:47 +00:00
issues Refactor deletion () 2023-12-25 21:25:29 +01:00
migrations Add combined index for issue_user.uid and issue_id () 2023-12-14 09:26:59 +00:00
organization Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods () 2023-12-07 15:27:36 +08:00
packages Revert "packages: Calculate package size quota using package creator ID instead of owner ID ()" () 2023-11-14 16:03:56 +01:00
perm Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods () 2023-12-07 15:27:36 +08:00
project Fix comment permissions () 2023-11-25 17:21:21 +00:00
pull Add Index to pull_auto_merge.doer_id () 2023-10-30 08:39:29 +00:00
repo Refactor deletion () 2023-12-25 21:25:29 +01:00
secret Use db.Find instead of writing methods for every object () 2023-11-24 03:49:41 +00:00
shared/types
system Refactor deletion () 2023-12-25 21:25:29 +01:00
unit
unittest Upgrade xorm () 2023-10-19 10:25:57 +00:00
user Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods () 2023-12-07 15:27:36 +08:00
webhook Refactor deletion () 2023-12-25 21:25:29 +01:00
error.go
fixture_generation.go Replace more db.DefaultContext () 2023-10-15 17:46:06 +02:00
fixture_test.go Replace more db.DefaultContext () 2023-10-15 17:46:06 +02:00
main_test.go
org.go Refactor deletion () 2023-12-25 21:25:29 +01:00
org_team.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods () 2023-12-07 15:27:36 +08:00
org_team_test.go
org_test.go Replace more db.DefaultContext () 2023-10-15 17:46:06 +02:00
repo.go Refactor deletion () 2023-12-25 21:25:29 +01:00
repo_test.go
repo_transfer.go
repo_transfer_test.go