We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19e4b31 commit f6466c8Copy full SHA for f6466c8
models/migrations/v1_25/v322.go
@@ -7,7 +7,7 @@ import "xorm.io/xorm"
7
8
func AddGroupColumnsToRepositoryTable(x *xorm.Engine) error {
9
type Repository struct {
10
- GroupID int64 `xorm:"DEFAULT NULL"`
+ GroupID int64 `xorm:"UNIQUE(s) INDEX DEFAULT NULL"`
11
GroupSortOrder int
12
}
13
_, err := x.SyncWithOptions(xorm.SyncOptions{
models/repo/repo.go
@@ -220,7 +220,7 @@ type Repository struct {
220
UpdatedUnix timeutil.TimeStamp `xorm:"INDEX updated"`
221
ArchivedUnix timeutil.TimeStamp `xorm:"DEFAULT 0"`
222
223
- GroupID int64 `xorm:"INDEX DEFAULT NULL"`
224
GroupSortOrder int `xorm:"INDEX"`
225
226
0 commit comments