runAndRemove method

  1. @override
Future<void> runAndRemove(
  1. SqliteSchema 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(SqliteSchema schema, String name) =>
    _inSavepoint(() {
      schema.run(database);
      database.execute('DELETE FROM migrations WHERE path = ?', [name]);
    });