2022-11-23 21:49:41 -05:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
2022-12-02 09:14:57 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2022-11-23 21:49:41 -05:00
|
|
|
|
|
|
|
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))
|
|
|
|
}
|