Skip to content

Commit

Permalink
increasing id instead of project_key
Browse files Browse the repository at this point in the history
  • Loading branch information
Josip Stojak authored and Josip Stojak committed Nov 8, 2024
1 parent b610bb0 commit 6183d11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ import (
"github.com/apache/incubator-devlake/core/plugin"
)

var _ plugin.MigrationScript = (*increaseProjectKeyLength)(nil)
var _ plugin.MigrationScript = (*increaseCqProjectsIdLength)(nil)

type increaseProjectKeyLength struct{}
type increaseCqProjectsIdLength struct{}

func (script *increaseProjectKeyLength) Up(basicRes context.BasicRes) errors.Error {
return basicRes.GetDal().ModifyColumnType("cq_projects", "project_key", "varchar(500)")
func (script *increaseCqProjectsIdLength) Up(basicRes context.BasicRes) errors.Error {
return basicRes.GetDal().ModifyColumnType("cq_projects", "id", "varchar(500)")
}

func (*increaseProjectKeyLength) Version() uint64 {
func (*increaseCqProjectsIdLength) Version() uint64 {
return 20240813160242
}

func (*increaseProjectKeyLength) Name() string {
return "increase cq_projects.project_key length to 500"
func (*increaseCqProjectsIdLength) Name() string {
return "increase cq_projects.id length to 500"
}
2 changes: 1 addition & 1 deletion backend/core/models/migrationscripts/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,6 @@ func All() []plugin.MigrationScript {
new(increaseCqIssueComponentLength),
new(addCqIssueImpacts),
new(changeIssueComponentType),
new(increaseProjectKeyLength),
new(increaseCqProjectsIdLength),
}
}

0 comments on commit 6183d11

Please sign in to comment.