upgrade method

  1. @override
Future<void> upgrade(
  1. String version,
  2. Migration migration
)
override

Applies the migration if the current version is version. If the current DB version is not version, this method MUST throw an exception. All migration statements MUST be executed in a single transaction.

Implementation

@override
Future<void> upgrade(String version, Migration migration) async {
  appliedMigrations.add(migration);
}