mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-03-04 19:11:35 +00:00
Fix unique constraint for orgs (#4923)
This commit is contained in:
parent
0ecd57d2df
commit
a3cc61b715
1 changed files with 2 additions and 2 deletions
|
@ -17,8 +17,8 @@ package model
|
||||||
// Org represents an organization.
|
// Org represents an organization.
|
||||||
type Org struct {
|
type Org struct {
|
||||||
ID int64 `json:"id,omitempty" xorm:"pk autoincr 'id'"`
|
ID int64 `json:"id,omitempty" xorm:"pk autoincr 'id'"`
|
||||||
ForgeID int64 `json:"forge_id,omitempty" xorm:"forge_id"`
|
ForgeID int64 `json:"forge_id,omitempty" xorm:"forge_id UNIQUE(s)"`
|
||||||
Name string `json:"name" xorm:"UNIQUE 'name'"`
|
Name string `json:"name" xorm:"'name' UNIQUE(s)"`
|
||||||
IsUser bool `json:"is_user" xorm:"is_user"`
|
IsUser bool `json:"is_user" xorm:"is_user"`
|
||||||
// if name lookup has to check for membership or not
|
// if name lookup has to check for membership or not
|
||||||
Private bool `json:"-" xorm:"private"`
|
Private bool `json:"-" xorm:"private"`
|
||||||
|
|
Loading…
Reference in a new issue