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 a31a3d6 commit b83a32fCopy full SHA for b83a32f
models/migrations/v1_26/v324.go
@@ -4,7 +4,7 @@ import "xorm.io/xorm"
4
5
func AddGroupColumnsToRepositoryTable(x *xorm.Engine) error {
6
type Repository struct {
7
- GroupID int64 `xorm:"DEFAULT NULL"`
+ GroupID int64 `xorm:"UNIQUE(s) INDEX DEFAULT NULL"`
8
GroupSortOrder int
9
}
10
_, 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