You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2023/08/16 10:12:55 UTC
[incubator-devlake] branch fix#5688 updated: fix: add original type primaryKey
This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch fix#5688
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/fix#5688 by this push:
new a45194ee6 fix: add original type primaryKey
a45194ee6 is described below
commit a45194ee662b24c9d8845bf597a17836a2b15eef
Author: abeizn <zi...@merico.dev>
AuthorDate: Wed Aug 16 18:12:44 2023 +0800
fix: add original type primaryKey
---
backend/core/models/domainlayer/ticket/issue_relationship.go | 2 +-
backend/core/models/migrationscripts/archived/issue_relationship.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/backend/core/models/domainlayer/ticket/issue_relationship.go b/backend/core/models/domainlayer/ticket/issue_relationship.go
index a6a3d4776..b7ad07132 100644
--- a/backend/core/models/domainlayer/ticket/issue_relationship.go
+++ b/backend/core/models/domainlayer/ticket/issue_relationship.go
@@ -22,7 +22,7 @@ import "github.com/apache/incubator-devlake/core/models/common"
type IssueRelationship struct {
SourceIssueId string `gorm:"primaryKey;type:varchar(255);index"`
TargetIssueId string `gorm:"primaryKey;type:varchar(255)"`
- OriginalType string `gorm:"type:varchar(255)"`
+ OriginalType string `gorm:"primaryKey;type:varchar(255)"`
common.NoPKModel
}
diff --git a/backend/core/models/migrationscripts/archived/issue_relationship.go b/backend/core/models/migrationscripts/archived/issue_relationship.go
index 2f2f2d18e..736fbcbd2 100644
--- a/backend/core/models/migrationscripts/archived/issue_relationship.go
+++ b/backend/core/models/migrationscripts/archived/issue_relationship.go
@@ -20,7 +20,7 @@ package archived
type IssueRelationship struct {
SourceIssueId string `gorm:"primaryKey;type:varchar(255);index"`
TargetIssueId string `gorm:"primaryKey;type:varchar(255)"`
- OriginalType string `gorm:"type:varchar(255)"`
+ OriginalType string `gorm:"primaryKey;type:varchar(255)"`
NoPKModel
}