aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/migrations.go
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2022-11-24 10:49:41 +0800
committerGitHub <noreply@github.com>2022-11-23 20:49:41 -0600
commit702f4b521e118482e5887664efe69035fff96ceb (patch)
tree83f3026f5a3f3e169f3de7e03bad726638b6c11f /models/migrations/migrations.go
parente483ec3a00752349dd4aa326ae75b2bbdd45981f (diff)
downloadgitea-702f4b521e118482e5887664efe69035fff96ceb.tar.gz
gitea-702f4b521e118482e5887664efe69035fff96ceb.zip
Add index for access_token (#21908)
The `token_last_eight` field has been used in `GetAccessTokenBySHA `:
Diffstat (limited to 'models/migrations/migrations.go')
-rw-r--r--models/migrations/migrations.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/migrations/migrations.go b/models/migrations/migrations.go
index c48fc8d9a8..a48c837e8b 100644
--- a/models/migrations/migrations.go
+++ b/models/migrations/migrations.go
@@ -441,6 +441,8 @@ var migrations = []Migration{
NewMigration("Add header_authorization_encrypted column to webhook table", v1_19.AddHeaderAuthorizationEncryptedColWebhook),
// v234 -> v235
NewMigration("Add package cleanup rule table", v1_19.CreatePackageCleanupRuleTable),
+ // v235 -> v236
+ NewMigration("Add index for access_token", v1_19.AddIndexForAccessToken),
}
// GetCurrentDBVersion returns the current db version