You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by zh...@apache.org on 2022/08/07 13:02:03 UTC
[incubator-devlake] 06/06: fix: cached plan must not change result type (#2687)
This is an automated email from the ASF dual-hosted git repository.
zhangliang2022 pushed a commit to branch release-v0.12
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit 38d0b1d9da21073127bc09b2faef03e8993f0adc
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
}