migrateSchema
age-schema-client / migrateSchema
Function: migrateSchema()
function migrateSchema(
oldSchema,
newSchema,
options): SchemaDefinition;
Defined in: src/schema/migration.ts:496
Migrate a schema to a new version
Parameters
| Parameter | Type | Description |
|---|---|---|
oldSchema | SchemaDefinition | Old schema |
newSchema | SchemaDefinition | New schema |
options | SchemaMigrationOptions | Migration options |
Returns
Migrated schema
Throws
SchemaVersionError if migration is not possible