chore: remove unique index of runner name

This commit is contained in:
Jason Song
2022-10-24 17:35:30 +08:00
parent 04634b9143
commit 964f67e189
2 changed files with 2 additions and 3 deletions

View File

@ -14,7 +14,7 @@ func addBotTables(x *xorm.Engine) error {
type BotsRunner struct {
ID int64
UUID string `xorm:"CHAR(36) UNIQUE"`
Name string `xorm:"VARCHAR(32) UNIQUE"`
Name string `xorm:"VARCHAR(32)"`
OwnerID int64 `xorm:"index"` // org level runner, 0 means system
RepoID int64 `xorm:"index"` // repo level runner, if orgid also is zero, then it's a global
Description string `xorm:"TEXT"`