From 31403bfc7e71a7a2db5b2359bc3b30f27a5ec29b Mon Sep 17 00:00:00 2001 From: Dakota Walsh <101994734+dakota-portainer@users.noreply.github.com> Date: Tue, 30 Apr 2024 21:30:46 -0400 Subject: [PATCH] fix(migration): improper version EE-7048 (#11713) --- api/datastore/migrator/migrator.go | 2 +- api/datastore/test_data/output_24_to_latest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/datastore/migrator/migrator.go b/api/datastore/migrator/migrator.go index 443f8d3a4..3eff98905 100644 --- a/api/datastore/migrator/migrator.go +++ b/api/datastore/migrator/migrator.go @@ -236,7 +236,7 @@ func (m *Migrator) initMigrations() { m.updateAppTemplatesVersionForDB110, m.updateResourceOverCommitToDB110, ) - m.addMigrations("2.21", + m.addMigrations("2.20.2", m.cleanPendingActionsForDeletedEndpointsForDB111, ) diff --git a/api/datastore/test_data/output_24_to_latest.json b/api/datastore/test_data/output_24_to_latest.json index 88b3ef248..0e4c7aa1c 100644 --- a/api/datastore/test_data/output_24_to_latest.json +++ b/api/datastore/test_data/output_24_to_latest.json @@ -941,6 +941,6 @@ } ], "version": { - "VERSION": "{\"SchemaVersion\":\"2.21.0\",\"MigratorCount\":1,\"Edition\":1,\"InstanceID\":\"463d5c47-0ea5-4aca-85b1-405ceefee254\"}" + "VERSION": "{\"SchemaVersion\":\"2.21.0\",\"MigratorCount\":0,\"Edition\":1,\"InstanceID\":\"463d5c47-0ea5-4aca-85b1-405ceefee254\"}" } } \ No newline at end of file