abeizn commented on code in PR #3726:
URL:
https://github.com/apache/incubator-devlake/pull/3726#discussion_r1021486153
##########
models/domainlayer/code/commits_diff.go:
##########
@@ -17,15 +17,22 @@ limitations under the License.
package code
-type RefsCommitsDiff struct {
- NewRefId string `gorm:"primaryKey;type:varchar(255)"`
- OldRefId string `gorm:"primaryKey;type:varchar(255)"`
- CommitSha string `gorm:"primaryKey;type:varchar(40)"`
- NewRefCommitSha string `gorm:"type:varchar(40)"`
- OldRefCommitSha string `gorm:"type:varchar(40)"`
- SortingIndex int
+type CommitsDiff struct {
+ CommitSha string `gorm:"primaryKey;type:varchar(40)"`
+ NewCommitSha string `gorm:"primaryKey;type:varchar(40)"`
+ OldCommitSha string `gorm:"primaryKey;type:varchar(40)"`
+ SortingIndex int
}
-func (RefsCommitsDiff) TableName() string {
- return "refs_commits_diffs"
+func (CommitsDiff) TableName() string {
+ return "commits_diffs"
+}
+
+type FinishedCommitsDiffs struct {
+ NewCommitSha string `gorm:"primaryKey;type:varchar(40)"`
+ OldCommitSha string `gorm:"primaryKey;type:varchar(40)"`
+}
+
+func (FinishedCommitsDiffs) TableName() string {
Review Comment:
ref_commits_diffs -> commits_diffs and finished_commits_diffs(it records the
new_commit_sha and old_commit_sha pair that is inserted after being
successfully calculated).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]