You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by li...@apache.org on 2023/04/23 07:09:50 UTC

[incubator-devlake] branch main updated: fix: delete tapd unnecessary migrations (#5007)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 509d2db7e fix: delete tapd unnecessary migrations (#5007)
509d2db7e is described below

commit 509d2db7e74389f9b4297d0e9f3d10d0d2a6bc9d
Author: abeizn <zi...@merico.dev>
AuthorDate: Sun Apr 23 15:09:46 2023 +0800

    fix: delete tapd unnecessary migrations (#5007)
---
 .../tapd/models/migrationscripts/20230330_delete_issue.go        | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/backend/plugins/tapd/models/migrationscripts/20230330_delete_issue.go b/backend/plugins/tapd/models/migrationscripts/20230330_delete_issue.go
index a6130a5f9..b62777a18 100644
--- a/backend/plugins/tapd/models/migrationscripts/20230330_delete_issue.go
+++ b/backend/plugins/tapd/models/migrationscripts/20230330_delete_issue.go
@@ -27,13 +27,8 @@ type deleteIssue struct{}
 
 func (*deleteIssue) Up(basicRes context.BasicRes) errors.Error {
 	db := basicRes.GetDal()
-	err := db.DropTables(archived.TapdIssue{})
-	if err != nil {
-		return err
-	}
-	// drop if exist
-	_ = db.DropColumns(`_tool_tapd_transformation_rules`, `remotelink_commit_sha_pattern`, `remotelink_repo_pattern`)
-	return nil
+
+	return db.DropTables(archived.TapdIssue{})
 }
 
 func (*deleteIssue) Version() uint64 {