This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit ff7ccd1f60b3ee494463702da800b3f0f60138ea
Author: xgdyp <[email protected]>
AuthorDate: Fri Jul 22 17:02:05 2022 +0800

    fix: update migrationscript drop arichived.commitfile table before
---
 models/migrationscripts/20220722_commitfile_component.go | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/models/migrationscripts/20220722_commitfile_component.go 
b/models/migrationscripts/20220722_commitfile_component.go
index 88a346a8..f4bf01c9 100644
--- a/models/migrationscripts/20220722_commitfile_component.go
+++ b/models/migrationscripts/20220722_commitfile_component.go
@@ -21,6 +21,7 @@ import (
        "context"
        "github.com/apache/incubator-devlake/models/common"
        "github.com/apache/incubator-devlake/models/domainlayer"
+       "github.com/apache/incubator-devlake/models/migrationscripts/archived"
        "gorm.io/gorm"
 )
 
@@ -59,7 +60,7 @@ func (CommitFileComponent) TableName() string {
 type commitfileComponent struct{}
 
 func (*commitfileComponent) Up(ctx context.Context, db *gorm.DB) error {
-       err := db.Migrator().DropTable(&CommitFile{})
+       err := db.Migrator().DropTable(&archived.CommitFile{})
        if err != nil {
                return err
        }
@@ -72,7 +73,7 @@ func (*commitfileComponent) Up(ctx context.Context, db 
*gorm.DB) error {
 }
 
 func (*commitfileComponent) Version() uint64 {
-       return 20220722162305
+       return 20220722165805
 }
 
 func (*commitfileComponent) Name() string {

Reply via email to