applyMigrations method
Applies pending native SQLite migrations in numeric order.
Each complete SQL script and its history row commit atomically. Applied SQL strings are verified exactly and must never be edited, removed, or renamed. Returns the number of migrations applied by this call.
Implementation
Future<int> applyMigrations(Iterable<SqliteMigration> migrations) {
final snapshot = List<SqliteMigration>.unmodifiable(migrations);
return _schedule(() => _applyMigrations(snapshot));
}