Instance Methodgrdb 7.4.0GRDB

hasBeenSuperseded(_:)

A boolean value indicating whether the database refers to unregistered migrations.

DatabaseMigrator.swift:445
func hasBeenSuperseded(_ db: Database) throws -> Bool

Parameters

db

A database connection.

Throws

A DatabaseError whenever an SQLite error occurs.

When the result is true, the database has likely been migrated by a more recent migrator.