migrate(_:upTo:)
Runs all unapplied migrations, in the same order as they were registered, up to the target migration identifier (included).
func migrate(_ writer: any DatabaseWriter, upTo targetIdentifier: String) throws
Parameters
- writer
A DatabaseWriter.
- targetIdentifier
A migration identifier.
Throws
The error thrown by the first failed migration.