Public function

Creates a named set of migration ids given a named set of version numbers and a sequence id.

See the migration guide for more info on how to use this API.

Signature
function createMigrationIds<
  ID extends string,
  Versions extends Record<string, number>,
>(
  sequenceId: ID,
  versions: Versions
): {
  [K in keyof Versions]: `${ID}/${Versions[K]}`
}
Parameters
NameDescription

sequenceId

ID

versions

Versions
Returns
{
  [K in keyof Versions]: `${ID}/${Versions[K]}`
}
Source

packages/store/src/lib/migrate.ts

ComputedCachecreateMigrationSequence