Files

17 lines
354 B
Go
Raw Permalink Normal View History

2024-08-20 01:04:06 +08:00
// Copyright 2024 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
2025-06-27 07:59:55 +02:00
package v1_23
2024-08-20 01:04:06 +08:00
import "xorm.io/xorm"
func AddIndexForReleaseSha1(x *xorm.Engine) error {
type Release struct {
Sha1 string `xorm:"INDEX VARCHAR(64)"`
}
2025-05-15 09:28:31 -07:00
_, err := x.SyncWithOptions(xorm.SyncOptions{
IgnoreDropIndices: true,
}, new(Release))
return err
2024-08-20 01:04:06 +08:00
}