defineMigrations

See source code

Deprecated: use createShapePropsMigrationSequence instead. See the docs for how to migrate.

function defineMigrations(opts: {
  currentVersion?: number
  firstVersion?: number
  migrators?: Record<number, LegacyMigration>
  subTypeKey?: string
  subTypeMigrations?: Record<string, LegacyBaseMigrationsInfo>
}): LegacyMigrations

Parameters

NameDescription

opts

{
  currentVersion?: number
  firstVersion?: number
  migrators?: Record<number, LegacyMigration>
  subTypeKey?: string
  subTypeMigrations?: Record<
    string,
    LegacyBaseMigrationsInfo
  >
}

Returns

Prev
createRecordType
Next
devFreeze