]> source.dussan.org Git - gitea.git/commit
Refactor update checker to use AppState (#17387)
authorwxiaoguang <wxiaoguang@gmail.com>
Thu, 21 Oct 2021 16:10:49 +0000 (00:10 +0800)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 16:10:49 +0000 (17:10 +0100)
commit960c322586eceb9598bb0a9985a8dd987dc74807
tree8a95695e81f571c82728994a006620b08e7fc8ab
parent67561e79f15f23a00ad07df36de0ee54d69efc78
Refactor update checker to use AppState (#17387)

We have the `AppState` module now, it can store app related data easily. We do not need to create separate tables for each feature.

So the update checker can use `AppState` instead of a one-row dedicate table.

And the code of update checker is moved from `models` to `modules`.
models/migrations/migrations.go
models/migrations/v199.go
models/migrations/v201.go [new file with mode: 0644]
models/update_checker.go [deleted file]
modules/cron/tasks_extended.go
modules/updatechecker/update_checker.go [new file with mode: 0644]
routers/web/admin/admin.go