Files

17 lines
308 B
Go
Raw Permalink Normal View History

2022-11-24 10:49:41 +08:00
// Copyright 2022 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2022-11-24 10:49:41 +08:00
2025-06-27 07:59:55 +02:00
package v1_19
2022-11-24 10:49:41 +08:00
import (
"xorm.io/xorm"
)
func AddIndexForAccessToken(x *xorm.Engine) error {
type AccessToken struct {
TokenLastEight string `xorm:"INDEX token_last_eight"`
}
return x.Sync(new(AccessToken))
}