This is an automated email from the ASF dual-hosted git repository.
abeizn 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 5825e2332 fix(bamboo): update migration script's name, avoid runtime
error (#6130)
5825e2332 is described below
commit 5825e23329d7ec830a82f78bfc43de3316176bed
Author: Lynwee <[email protected]>
AuthorDate: Thu Sep 21 10:26:42 2023 +0800
fix(bamboo): update migration script's name, avoid runtime error (#6130)
---
.../models/migrationscripts/20230831_add_cicd_deployments_table.go | 2 +-
.../bamboo/models/migrationscripts/20230920_rename_raw_tables.go | 6 +-----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git
a/backend/core/models/migrationscripts/20230831_add_cicd_deployments_table.go
b/backend/core/models/migrationscripts/20230831_add_cicd_deployments_table.go
index e29110fea..f40c49074 100644
---
a/backend/core/models/migrationscripts/20230831_add_cicd_deployments_table.go
+++
b/backend/core/models/migrationscripts/20230831_add_cicd_deployments_table.go
@@ -57,7 +57,7 @@ func (*addCICDDeploymentsTable) Up(basicRes context.BasicRes)
errors.Error {
}
func (*addCICDDeploymentsTable) Version() uint64 {
- return 202307831162403
+ return 20230831162403
}
func (*addCICDDeploymentsTable) Name() string {
diff --git
a/backend/plugins/bamboo/models/migrationscripts/20230920_rename_raw_tables.go
b/backend/plugins/bamboo/models/migrationscripts/20230920_rename_raw_tables.go
index 20c16bf55..20374bac6 100644
---
a/backend/plugins/bamboo/models/migrationscripts/20230920_rename_raw_tables.go
+++
b/backend/plugins/bamboo/models/migrationscripts/20230920_rename_raw_tables.go
@@ -51,9 +51,5 @@ func (*renameMultiBambooRawTables20230920) Version() uint64 {
}
func (*renameMultiBambooRawTables20230920) Name() string {
- return "rename _raw_bamboo_api_deploy_build to
_raw_bamboo_api_deploy_builds," +
- " _raw_bamboo_api_deploy to _raw_bamboo_api_deploys," +
- " _raw_bamboo_api_job_build to _raw_bamboo_api_job_builds," +
- " _raw_bamboo_api_job to _raw_bamboo_api_jobs," +
- " _raw_bamboo_api_plan_build to _raw_bamboo_api_plan_builds"
+ return "rename raw tables' name to their plural form"
}