Page Contents

Home > @loopback/repository > SchemaMigrationOptions

SchemaMigrationOptions interface


export interface SchemaMigrationOptions extends Options 

Extends: Options


Property Type Description
existingSchema? ‘drop’ | ‘alter’ (Optional) When set to ‘drop’, schema migration will drop existing tables and recreate them from scratch, removing any existing data along the way.When set to ‘alter’, schema migration will try to preserve current schema and data, and perform a non-destructive incremental update.
models? string[] (Optional) List of model names to migrate.By default, all models are migrated.