queryApplied method
Implementation
Future<List<MigrationRecord>> queryApplied() async {
if (!(await migrationsTableExists())) {
return [];
}
final existingRecords = '''
SELECT version FROM $migrationsTable
ORDER BY id ASC
''';
final rows = await adapter.query(Statement(existingRecords));
return rows
.map(
(r) => MigrationRecord(
version: r['version']! as String,
),
)
.toList();
}