From a54f930c7281e2d7c5fdf664a845837aee762774 Mon Sep 17 00:00:00 2001 From: Konrad Langenberg Date: Mon, 6 Nov 2017 21:39:52 +0100 Subject: [PATCH] Removed wrong notification content in struct --- models/issue_dependency.go | 8 ++++---- models/migrations/v49.go | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/models/issue_dependency.go b/models/issue_dependency.go index 7a475f517..c688357e1 100644 --- a/models/issue_dependency.go +++ b/models/issue_dependency.go @@ -8,12 +8,12 @@ import ( "time" ) -// IssueDependency is connection request for receiving issue notification. +// IssueDependency represents an issue dependency type IssueDependency struct { ID int64 `xorm:"pk autoincr"` - UserID int64 `xorm:"UNIQUE(watch) NOT NULL"` - IssueID int64 `xorm:"UNIQUE(watch) NOT NULL"` - DependencyID int64 `xorm:"UNIQUE(watch) NOT NULL"` + UserID int64 `xorm:"NOT NULL"` + IssueID int64 `xorm:"NOT NULL"` + DependencyID int64 `xorm:"NOT NULL"` Created time.Time `xorm:"-"` CreatedUnix int64 `xorm:"INDEX created"` Updated time.Time `xorm:"-"` diff --git a/models/migrations/v49.go b/models/migrations/v49.go index 36756d319..2ebc312c1 100644 --- a/models/migrations/v49.go +++ b/models/migrations/v49.go @@ -15,9 +15,9 @@ func addIssueDependencyTables(x *xorm.Engine) (err error) { type IssueDependency struct { ID int64 `xorm:"pk autoincr"` - UserID int64 `xorm:"UNIQUE(watch) NOT NULL"` - IssueID int64 `xorm:"UNIQUE(watch) NOT NULL"` - DependencyID int64 `xorm:"UNIQUE(watch) NOT NULL"` + UserID int64 `xorm:"NOT NULL"` + IssueID int64 `xorm:"NOT NULL"` + DependencyID int64 `xorm:"NOT NULL"` Created time.Time `xorm:"-"` CreatedUnix int64 `xorm:"INDEX created"` Updated time.Time `xorm:"-"`