Page Contents

Home > @loopback/repository > SchemaMigrationOptions

SchemaMigrationOptions interface


export interface SchemaMigrationOptions extends Options 

Extends: Options


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