likyh commented on code in PR #3135:
URL: https://github.com/apache/incubator-devlake/pull/3135#discussion_r975983321
##########
models/migrationscripts/20220913_commitfile_add_length.go:
##########
@@ -67,24 +68,49 @@ func (CommitFileComponentBak) TableName() string {
type addCommitFilePathLength struct{}
-func (*addCommitFilePathLength) Up(ctx context.Context, db *gorm.DB)
errors.Error {
- err := db.Migrator().RenameTable(&CommitFile{},
&CommitFileAddLengthBak{})
+func (*addCommitFilePathLength) Up(ctx context.Context, db *gorm.DB) (errs
errors.Error) {
+ var err error
+
+ // rename the commit_file_bak to cache old table
+ err = db.Migrator().RenameTable(&CommitFile{},
&CommitFileAddLengthBak{})
Review Comment:
`CommitFile` not defined in this file. is it `CommitFileAddLength`?
--
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]