Try to fix v2 migrations for pre-release builds

This commit is contained in:
Rudolf Meijering 2021-01-22 10:56:20 +01:00
parent aba78bdb0f
commit a1a1567501

View file

@ -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;
}