gitea/models
Lunny Xiao 3b2da7e4ae
Redefine the meaning of column is_active to make Actions Registration Token generation easier ()
Partially Fix 

This PR redefined the meaning of column `is_active` in table
`action_runner_token`.
Before this PR, `is_active` means whether it has been used by any
runner. If it's true, other runner cannot use it to register again.

In this PR, `is_active` means whether it's validated to be used to
register runner. And if it's true, then it can be used to register
runners until it become false. When creating a new `is_active` register
token, any previous tokens will be set `is_active` to false.
..
actions Redefine the meaning of column is_active to make Actions Registration Token generation easier ()
activities Another round of `db.DefaultContext` refactor ()
admin Next round of `db.DefaultContext` refactor ()
asymkey Another round of `db.DefaultContext` refactor ()
auth Next round of `db.DefaultContext` refactor ()
avatars Fix context cache bug & enable context cache for dashabord commits' authors ()
db Improve DeleteByID ()
dbfs Fix content holes in Actions task logs file ()
fixtures Fix more yaml lint errors ()
git Updates to the API for archived repos ()
issues Another round of `db.DefaultContext` refactor ()
migrations Fix more yaml lint errors ()
organization Another round of `db.DefaultContext` refactor ()
packages move repository deletion to service layer ()
perm move repository deletion to service layer ()
project Refactor project templates ()
pull refactor some functions to support ctx as first parameter ()
repo Another round of `db.DefaultContext` refactor ()
secret Refactor secrets modification logic ()
shared/types Display owner of a runner as a tooltip instead of static text ()
system Another round of `db.DefaultContext` refactor ()
unit Use `Set[Type]` instead of `map[Type]bool/struct{}`. ()
unittest Replace `interface{}` with `any` ()
user Another round of `db.DefaultContext` refactor ()
webhook Replace `interface{}` with `any` ()
error.go Sync branches into databases ()
fixture_generation.go Fix yaml test ()
fixture_test.go Fix yaml test ()
main_test.go move repository deletion to service layer ()
org.go refactor some functions to support ctx as first parameter ()
org_team.go Use db.WithTx for AddTeamMember to avoid ctx abuse ()
org_team_test.go Reduce usage of `db.DefaultContext` ()
org_test.go Implement FSFE REUSE for golang files ()
repo.go move repository deletion to service layer ()
repo_test.go Implement FSFE REUSE for golang files ()
repo_transfer.go Next round of `db.DefaultContext` refactor ()
repo_transfer_test.go Next round of `db.DefaultContext` refactor ()