Skip to content

Commit

Permalink
Make config linking non-unique (woodpecker-ci#3128)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 authored Jan 7, 2024
1 parent ade56ce commit 106508a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ type Config struct {

// PipelineConfig is the n:n relation between Pipeline and Config
type PipelineConfig struct {
ConfigID int64 `json:"-" xorm:"UNIQUE(s) NOT NULL 'config_id'"`
PipelineID int64 `json:"-" xorm:"UNIQUE(s) NOT NULL 'pipeline_id'"`
ConfigID int64 `json:"-" xorm:"NOT NULL 'config_id'"`
PipelineID int64 `json:"-" xorm:"NOT NULL 'pipeline_id'"`
}

0 comments on commit 106508a

Please sign in to comment.