Giteabot ecae62837c
Refactor `setting.Database.UseXXX` to methods () ()
Backport 

Replace .

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

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

This refactor can fix the bug mentioned in , so it should be
backported.

Co-authored-by: Jason Song <i@wolfogre.com>
..
db.go Refactor `setting.Database.UseXXX` to methods () ()
db_test.go Implement FSFE REUSE for golang files ()
hash.go Replace fmt.Sprintf with hex.EncodeToString ()
main_test.go Implement FSFE REUSE for golang files ()
testlogger.go Implement FSFE REUSE for golang files ()
tests.go Refactor the setting to make unit test easier ()