checked property
Returns an immutable, validated history or throws on a changed fingerprint.
Implementation
List<Migration> get checked {
final migrations = <Migration>[];
for (final (migration, expected) in entries) {
if (migration.checksum != expected) {
throw OrmException(
'MIGRATION.CHECKSUM',
'Migration ${migration.id} differs from its recorded Dart definition.',
);
}
migrations.add(migration);
}
validateMigrations(migrations, dialect: dialect);
return List.unmodifiable(migrations);
}