dropDatabase static method
Drops all tables and recreates them. Useful for fresh migrations or during development.
Implementation
static Future<void> dropDatabase(
Migrator migrator,
GeneratedDatabase database,
) async {
for (final table in database.allSchemaEntities) {
await migrator.drop(table);
}
await migrator.createAll();
}