2022-11-24 03:49:41 +01:00
|
|
|
// Copyright 2022 The Gitea Authors. All rights reserved.
|
2022-12-02 15:14:57 +01:00
|
|
|
// SPDX-License-Identifier: MIT
|
2022-11-24 03:49:41 +01: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))
|
|
|
|
}
|