forgejo/models
Jason Song c84238800b
Refactor setting.Database.UseXXX to methods (#23354)
Replace #23350.

Refactor `setting.Database.UseMySQL` to
`setting.Database.Type.IsMySQL()`.

To avoid mismatching between `Type` and `UseXXX`.

This refactor can fix the bug mentioned in #23350, so it should be
backported.
2023-03-07 18:51:06 +08:00
..
actions Avoid too long names for actions (#23162) 2023-02-28 18:20:36 +08:00
activities Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
admin
asymkey Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
auth Use minio/sha256-simd for accelerated SHA256 (#23052) 2023-02-22 14:21:46 -05:00
avatars Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
db Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
dbfs Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
fixtures Add default owner team to privated_org and limited_org in unit test (#23109) 2023-03-04 19:23:51 +00:00
git Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
issues Fix cannot reopen after pushing commits to a closed PR (#23189) 2023-03-03 21:16:58 +08:00
migrations Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
organization
packages
perm
project Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
pull
repo Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
secret
system Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
unit
unittest Refactor setting.Database.UseXXX to methods (#23354) 2023-03-07 18:51:06 +08:00
user Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go Refactor the setting to make unit test easier (#22405) 2023-02-20 00:12:01 +08:00
migrate.go
migrate_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go Avoid warning for system setting when start up (#23054) 2023-02-24 18:23:13 +08:00
repo_collaboration.go
repo_collaboration_test.go
repo_test.go
repo_transfer.go
repo_transfer_test.go