2022-11-24 08:19:41 +05:30
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
2022-12-02 19:44:57 +05:30
|
|
|
// SPDX-License-Identifier: MIT
|
2022-11-24 08:19:41 +05:30
|
|
|
|
|
|
|
package v1_19 //nolint
|
|
|
|
|
|
|
|
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))
|
|
|
|
}
|