Instance Methodgrdb 7.3.0GRDB

migrate(_:upTo:)

Runs all unapplied migrations, in the same order as they were registered, up to the target migration identifier (included).

DatabaseMigrator.swift:258
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.