runAndRemove method

  1. @override
Future<void> runAndRemove(
  1. PostgresSchema schema,
  2. String name
)
override

Runs schema, and removes name from the migrations table: in one transaction, if the database changes its tables in one.

Implementation

@override
Future<void> runAndRemove(PostgresSchema schema, String name) =>
    connection.runTx((ctx) async {
      await schema.run(ctx);
      await _deletePath(ctx, name);
    });