internal/migrations library

Contains tools for verifying migrations that don't depend on sqlparser and can thus be part of the core drift package.

verifying migrations

Classes

SchemaInstantiationHelper
A class that can create a GeneratedDatabase suitable for instantating an older version of your app's database.

Exceptions / Errors

MissingSchemaException
Thrown by SchemaInstantiationHelper.databaseForVersion when trying to instantiate a schema that hasn't been saved.