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

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


The following commit(s) were added to refs/heads/release-v0.12 by this push:
     new 95cdfcd4 fix: cached plan must not change result type (#2687)
95cdfcd4 is described below

commit 95cdfcd4cd3c123a931ab3ddd6108e5e5ce218a7
Author: abeizn <[email protected]>
AuthorDate: Fri Aug 5 13:11:08 2022 +0800

    fix: cached plan must not change result type (#2687)
---
 models/migrationscripts/220622-blueprint-normal-mode.go | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/models/migrationscripts/220622-blueprint-normal-mode.go 
b/models/migrationscripts/220622-blueprint-normal-mode.go
index 7ba66253..7134fc76 100644
--- a/models/migrationscripts/220622-blueprint-normal-mode.go
+++ b/models/migrationscripts/220622-blueprint-normal-mode.go
@@ -44,12 +44,8 @@ func (blueprintNormalMode_Pipeline) TableName() string {
 // migration script
 type blueprintNormalMode struct{}
 
-func (*blueprintNormalMode) 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")
+func (*renameTasksToPlan) Up(ctx context.Context, db *gorm.DB) error {
+       err := db.Migrator().RenameColumn(&blueprintNormalMode_Blueprint{}, 
"tasks", "plan")
        if err != nil {
                return err
        }

Reply via email to