Commit Graph

5 Commits (b8c2afdc5fda830c85586988a49d47678ba0ea98)

Author SHA1 Message Date
TheFox0x7 ae3a18e01a
Remove context from git struct ()
Argument is moved from struct init in command run, which lets us remove
context from struct.
delvh e10ba5e5e0
Rename `Sync2` -> `Sync` ()
The xorm `Sync2` has already been deprecated in favor of `Sync`,
so let's do the same inside the Gitea codebase.

Command used to replace everything:
```sh
for i in $(ag Sync2 --files-with-matches); do vim $i -c ':%sno/Sync2/Sync/g' -c ':wq'; done
```
Jason Song c84238800b
Refactor `setting.Database.UseXXX` to methods ()
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.
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files ()
Change all license headers to comply with REUSE specification.

Fix 

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Lunny Xiao e72acd5e5b
Split migrations folder ()
There are too many files in `models/migrations` folder so that I split
them into sub folders.