Make config linking non-unique (#3128)

closes https://github.com/woodpecker-ci/woodpecker/issues/3093
This commit is contained in:
qwerty287 2024-01-07 16:12:27 +01:00 committed by GitHub
parent ade56ce1da
commit 106508a094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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