remove method

  1. @override
Future<void> remove(
  1. MigrationId id
)
override

Removes the migration entry from the ledger (used during rollbacks).

Implementation

@override
Future<void> remove(MigrationId id) => _withDriver((driver) async {
  final context = _contextForDriver(driver);
  final repository = context.repository<$OrmMigrationRecord>();
  await repository.deleteByKeys([
    {'id': id.toString()},
  ]);
});