aboutsummaryrefslogtreecommitdiffstats
path: root/models/migrations/v1_24/v319.go
blob: 6983c3860545ea1c6be452010d33831b575569d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright 2025 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_24 //nolint

import (
	"xorm.io/xorm"
)

func AddExclusiveOrderColumnToLabelTable(x *xorm.Engine) error {
	type Label struct {
		ExclusiveOrder int `xorm:"DEFAULT 0"`
	}

	return x.Sync(new(Label))
}