Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c328bda

Browse files
add/remove more constraints for mssql/mysql compatibility
1 parent d47da3a commit c328bda

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎models/group/group.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ import (
2626
// Group represents a group of repositories for a user or organization
2727
type Group struct {
2828
ID int64 `xorm:"pk autoincr"`
29-
OwnerID int64 `xorm:"UNIQUE(s) index NOT NULL"`
29+
OwnerID int64 `xorm:"INDEX NOT NULL"`
3030
OwnerName string
3131
Owner *user_model.User `xorm:"-"`
32-
LowerName string `xorm:"TEXT INDEX NOT NULL"`
33-
Name string `xorm:"TEXT INDEX NOT NULL"`
32+
LowerName string `xorm:"TEXT NOT NULL"`
33+
Name string `xorm:"TEXT NOT NULL"`
3434
Description string `xorm:"TEXT"`
3535
Visibility structs.VisibleType `xorm:"NOT NULL DEFAULT 0"`
3636
Avatar string `xorm:"VARCHAR(64)"`
3737

38-
ParentGroupID int64 `xorm:"DEFAULT NULL"`
38+
ParentGroupID int64 `xorm:"INDEX DEFAULT NULL"`
3939
ParentGroup *Group `xorm:"-"`
4040
Subgroups RepoGroupList `xorm:"-"`
4141

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /