This is an automated email from the ASF dual-hosted git repository. narro 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 c77916a14 fix: add missing issues.fix_versions (#8496) c77916a14 is described below commit c77916a14e17c238f58dbdbe51b67c5cc524a91a Author: Klesh Wong <zhenmian.hu...@merico.dev> AuthorDate: Thu Jul 10 15:42:21 2025 +0800 fix: add missing issues.fix_versions (#8496) --- .../migrationscripts/20250710_issue_fix_version.go | 48 ++++++++++++++++++++++ backend/core/models/migrationscripts/register.go | 1 + 2 files changed, 49 insertions(+) diff --git a/backend/core/models/migrationscripts/20250710_issue_fix_version.go b/backend/core/models/migrationscripts/20250710_issue_fix_version.go new file mode 100644 index 000000000..91bc71fd7 --- /dev/null +++ b/backend/core/models/migrationscripts/20250710_issue_fix_version.go @@ -0,0 +1,48 @@ +/* +Licensed to the Apache Software Foundation (ASF) under one or more +contributor license agreements. See the NOTICE file distributed with +this work for additional information regarding copyright ownership. +The ASF licenses this file to You under the Apache License, Version 2.0 +(the "License"); you may not use this file except in compliance with +the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package migrationscripts + +import ( + "github.com/apache/incubator-devlake/core/context" + "github.com/apache/incubator-devlake/core/errors" + "github.com/apache/incubator-devlake/core/plugin" +) + +var _ plugin.MigrationScript = (*addIssueFixVerion)(nil) + +type addIssueFixVerion struct{} + +type issue20250710 struct { + FixVersions string `gorm:"type:text"` +} + +func (issue20250710) TableName() string { + return "issues" +} + +func (script *addIssueFixVerion) Up(basicRes context.BasicRes) errors.Error { + return basicRes.GetDal().AutoMigrate(new(issue20250710)) +} + +func (*addIssueFixVerion) Version() uint64 { + return 20250710140418 +} + +func (*addIssueFixVerion) Name() string { + return "add missing issues.fix_versions" +} diff --git a/backend/core/models/migrationscripts/register.go b/backend/core/models/migrationscripts/register.go index fd90c8fd2..58c773f46 100644 --- a/backend/core/models/migrationscripts/register.go +++ b/backend/core/models/migrationscripts/register.go @@ -138,5 +138,6 @@ func All() []plugin.MigrationScript { new(createQaTables), new(increaseCqIssueComponentLength), new(extendFieldSizeForCq), + new(addIssueFixVerion), } }