Skip to content

Commit

Permalink
Clarify no plans to remove legacy migrations atm
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Nov 27, 2024
1 parent 5ecfdf6 commit f4b01b6
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ export interface SavedObjectsType<Attributes = any> {
*/
mappings: SavedObjectsTypeMappingDefinition;
/**
* An optional map of {@link SavedObjectMigrationFn | migrations} or a function returning a map of {@link SavedObjectMigrationFn | migrations} to be used to migrate the type.
* @deprecated Use {@link SavedObjectsType.modelVersions | modelVersions} instead.
* An optional map of {@link SavedObjectMigrationFn | migrations} or a function returning a map of
* {@link SavedObjectMigrationFn | migrations} to be used to migrate the type.
*
* @deprecated Use {@link SavedObjectsType.modelVersions | modelVersions} for all future migrations instead. We have no plans
* to remove legacy migrations at this point, so there's no need to migrate existing migrations to model versions.
*/
migrations?: SavedObjectMigrationMap | (() => SavedObjectMigrationMap);
/**
Expand All @@ -89,8 +92,8 @@ export interface SavedObjectsType<Attributes = any> {
*/
schemas?: SavedObjectsValidationMap | (() => SavedObjectsValidationMap);
/**
* If defined, objects of this type will be converted to a 'multiple' or 'multiple-isolated' namespace type when migrating to this
* version.
* If defined, objects of this type will be converted to a 'multiple' or 'multiple-isolated' namespace type when migrating to
* this version.
*
* Requirements:
*
Expand Down

0 comments on commit f4b01b6

Please sign in to comment.