Page Contents

Home > @loopback/repository > SchemaMigrationOptions

SchemaMigrationOptions interface

Signature:

export interface SchemaMigrationOptions extends Options 

Properties

Property Type Description
existingSchema 'drop' | 'alter' 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[] List of model names to migrate.By default, all models are migrated.