Added unique to issue dependency struct for issueID and DependencyID
This commit is contained in:
parent
a54f930c72
commit
d65fe40531
|
|
@ -12,8 +12,8 @@ import (
|
||||||
type IssueDependency struct {
|
type IssueDependency struct {
|
||||||
ID int64 `xorm:"pk autoincr"`
|
ID int64 `xorm:"pk autoincr"`
|
||||||
UserID int64 `xorm:"NOT NULL"`
|
UserID int64 `xorm:"NOT NULL"`
|
||||||
IssueID int64 `xorm:"NOT NULL"`
|
IssueID int64 `xorm:"UNIQUE(issue_dependency) NOT NULL"`
|
||||||
DependencyID int64 `xorm:"NOT NULL"`
|
DependencyID int64 `xorm:"UNIQUE(issue_dependency) NOT NULL"`
|
||||||
Created time.Time `xorm:"-"`
|
Created time.Time `xorm:"-"`
|
||||||
CreatedUnix int64 `xorm:"INDEX created"`
|
CreatedUnix int64 `xorm:"INDEX created"`
|
||||||
Updated time.Time `xorm:"-"`
|
Updated time.Time `xorm:"-"`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user