initialize method

  1. @override
Future<void> initialize(
  1. Migration migration
)
override

Initialize the DB by applying the migration. The DB MUST be fresh, e.g. no version defined. If the DB is already initialize, this method MUST throw an exception. All migration statements MUST be executed in a single transaction.

Implementation

@override
Future<void> initialize(Migration migration) async {
  appliedMigrations.add(migration);
}