Added unique to issue dependency struct for issueID and DependencyID

This commit is contained in:
Konrad Langenberg 2017-11-06 22:12:27 +01:00 committed by Konrad
parent a54f930c72
commit d65fe40531
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B

View File

@ -12,8 +12,8 @@ import (
type IssueDependency struct {
ID int64 `xorm:"pk autoincr"`
UserID int64 `xorm:"NOT NULL"`
IssueID int64 `xorm:"NOT NULL"`
DependencyID int64 `xorm:"NOT NULL"`
IssueID int64 `xorm:"UNIQUE(issue_dependency) NOT NULL"`
DependencyID int64 `xorm:"UNIQUE(issue_dependency) NOT NULL"`
Created time.Time `xorm:"-"`
CreatedUnix int64 `xorm:"INDEX created"`
Updated time.Time `xorm:"-"`