diff --git a/backend/core/models/migrationscripts/20240813_increase_project_key_length.go b/backend/core/models/migrationscripts/20240813_increase_cq_projects_id_length.go similarity index 69% rename from backend/core/models/migrationscripts/20240813_increase_project_key_length.go rename to backend/core/models/migrationscripts/20240813_increase_cq_projects_id_length.go index 609b3d7364b..86db2d758eb 100644 --- a/backend/core/models/migrationscripts/20240813_increase_project_key_length.go +++ b/backend/core/models/migrationscripts/20240813_increase_cq_projects_id_length.go @@ -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" } diff --git a/backend/core/models/migrationscripts/register.go b/backend/core/models/migrationscripts/register.go index 7252f7b969a..036dbf13061 100644 --- a/backend/core/models/migrationscripts/register.go +++ b/backend/core/models/migrationscripts/register.go @@ -136,6 +136,6 @@ func All() []plugin.MigrationScript { new(increaseCqIssueComponentLength), new(addCqIssueImpacts), new(changeIssueComponentType), - new(increaseProjectKeyLength), + new(increaseCqProjectsIdLength), } }