You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by kl...@apache.org on 2022/08/05 05:11:12 UTC

[incubator-devlake] branch main updated: fix: cached plan must not change result type (#2687)

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

klesh 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 283d7f49 fix: cached plan must not change result type (#2687)
283d7f49 is described below

commit 283d7f49d019fa71d4a293a1e011a30985176d4a
Author: abeizn <10...@users.noreply.github.com>
AuthorDate: Fri Aug 5 13:11:08 2022 +0800

    fix: cached plan must not change result type (#2687)
---
 models/migrationscripts/20220622_rename_tasks_to_plan.go | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/models/migrationscripts/20220622_rename_tasks_to_plan.go b/models/migrationscripts/20220622_rename_tasks_to_plan.go
index e344eb4e..9e0cc476 100644
--- a/models/migrationscripts/20220622_rename_tasks_to_plan.go
+++ b/models/migrationscripts/20220622_rename_tasks_to_plan.go
@@ -45,11 +45,7 @@ func (blueprintNormalMode_Pipeline) TableName() string {
 type renameTasksToPlan struct{}
 
 func (*renameTasksToPlan) Up(ctx context.Context, db *gorm.DB) error {
-	err := db.Migrator().AutoMigrate(&blueprintNormalMode_Blueprint{})
-	if err != nil {
-		return err
-	}
-	err = db.Migrator().RenameColumn(&blueprintNormalMode_Blueprint{}, "tasks", "plan")
+	err := db.Migrator().RenameColumn(&blueprintNormalMode_Blueprint{}, "tasks", "plan")
 	if err != nil {
 		return err
 	}