Skip to content

Commit

Permalink
Try to fix v2 migrations for pre-release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Jan 22, 2021
1 parent aba78bd commit a1a1567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/server/saved_objects/service/lib/repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a1a1567

Please sign in to comment.