2025-04-10 12:18:07 -05:00
|
|
|
// Copyright 2025 The Gitea Authors. All rights reserved.
|
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
2025-06-27 07:59:55 +02:00
|
|
|
package v1_24
|
2025-04-10 12:18:07 -05:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"xorm.io/xorm"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func AddExclusiveOrderColumnToLabelTable(x *xorm.Engine) error {
|
|
|
|
|
type Label struct {
|
|
|
|
|
ExclusiveOrder int `xorm:"DEFAULT 0"`
|
|
|
|
|
}
|
2025-04-26 09:50:45 -07:00
|
|
|
_, err := x.SyncWithOptions(xorm.SyncOptions{
|
|
|
|
|
IgnoreConstrains: true,
|
|
|
|
|
IgnoreIndices: true,
|
|
|
|
|
}, new(Label))
|
|
|
|
|
return err
|
2025-04-10 12:18:07 -05:00
|
|
|
}
|