Page Contents
Home > @loopback/repository > SchemaMigrationOptions > existingSchema
SchemaMigrationOptions.existingSchema property
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.
Signature:
existingSchema?: 'drop' | 'alter';