This is an automated email from the ASF dual-hosted git repository.
warren 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 b6886a70 fix: devlake_blueprints settings does exist
b6886a70 is described below
commit b6886a70de656ddcc7313e0bbb0483ba6a9d9ae3
Author: abeizn <[email protected]>
AuthorDate: Mon Aug 8 10:05:16 2022 +0800
fix: devlake_blueprints settings does exist
---
models/migrationscripts/20220622_rename_tasks_to_plan.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/models/migrationscripts/20220622_rename_tasks_to_plan.go
b/models/migrationscripts/20220622_rename_tasks_to_plan.go
index 9e0cc476..07592a8c 100644
--- a/models/migrationscripts/20220622_rename_tasks_to_plan.go
+++ b/models/migrationscripts/20220622_rename_tasks_to_plan.go
@@ -45,7 +45,11 @@ func (blueprintNormalMode_Pipeline) TableName() string {
type renameTasksToPlan struct{}
func (*renameTasksToPlan) Up(ctx context.Context, db *gorm.DB) error {
- err := db.Migrator().RenameColumn(&blueprintNormalMode_Blueprint{},
"tasks", "plan")
+ err := db.Migrator().AddColumn(blueprintNormalMode_Blueprint{},
"settings")
+ if err != nil {
+ return err
+ }
+ err = db.Migrator().RenameColumn(&blueprintNormalMode_Blueprint{},
"tasks", "plan")
if err != nil {
return err
}