Instance Methodgrdb 7.4.0GRDB

completedMigrations(_:)

Returns the identifiers of registered and completed migrations, in the order of registration.

DatabaseMigrator.swift:420
func completedMigrations(_ db: Database) throws -> [String]

Parameters

db

A database connection.

Throws

A DatabaseError whenever an SQLite error occurs.

A migration is completed if and only if all previous migrations have been applied.