From a1a1567501d528a087c4d8de2a10f90a9878f845 Mon Sep 17 00:00:00 2001 From: Rudolf Meijering Date: Fri, 22 Jan 2021 10:56:20 +0100 Subject: [PATCH] Try to fix v2 migrations for pre-release builds --- src/core/server/saved_objects/service/lib/repository.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/server/saved_objects/service/lib/repository.ts b/src/core/server/saved_objects/service/lib/repository.ts index 685760e81a2b7..3075191d5dc03 100644 --- a/src/core/server/saved_objects/service/lib/repository.ts +++ b/src/core/server/saved_objects/service/lib/repository.ts @@ -1691,7 +1691,9 @@ export class SavedObjectsRepository { // want to always use the type registry to resolve a type's index // (including the default index). if (this._migrator.savedObjectsConfig.enableV2) { - return `${this._registry.getIndex(type) || this._index}_${this._migrator.kibanaVersion}`; + return `${ + this._registry.getIndex(type) || this._index + }_${this._migrator.kibanaVersion.toLowerCase()}`; } else { return this._registry.getIndex(type) || this._index; }