summaryrefslogtreecommitdiffstats
path: root/models/forgejo_migrations/v1_22/v7.go
blob: b42dd1af670f9d711bead4ca0fb10ee0b0ae5071 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2024 The Forgejo Authors. All rights reserved.
// SPDX-License-Identifier: MIT

package v1_22 //nolint

import (
	"xorm.io/xorm"
)

func AddUserRepoUnitHintsSetting(x *xorm.Engine) error {
	type User struct {
		ID                  int64 `xorm:"pk autoincr"`
		EnableRepoUnitHints bool  `xorm:"NOT NULL DEFAULT true"`
	}

	return x.Sync(&User{})
}