diff --git a/angel_migration_runner/lib/src/postgres/runner.dart b/angel_migration_runner/lib/src/postgres/runner.dart index a3973a69..97220159 100755 --- a/angel_migration_runner/lib/src/postgres/runner.dart +++ b/angel_migration_runner/lib/src/postgres/runner.dart @@ -58,7 +58,7 @@ class PostgresMigrationRunner implements MigrationRunner { if (toRun.isNotEmpty) { var r = await connection.query('SELECT MAX(batch) from migrations;'); - int curBatch = r[0][0] ?? 0; + int curBatch = (r[0][0] ?? 0) as int; int batch = curBatch + 1; for (var k in toRun) { @@ -81,7 +81,7 @@ class PostgresMigrationRunner implements MigrationRunner { await _init(); var r = await connection.query('SELECT MAX(batch) from migrations;'); - int curBatch = r[0][0] ?? 0; + int curBatch = (r[0][0] ?? 0) as int; r = await connection .query('SELECT path from migrations WHERE batch = $curBatch;'); Iterable existing = r.expand((x) => x).cast(); diff --git a/angel_orm_test/mono_pkg.yaml b/angel_orm_test/mono_pkg.yaml new file mode 100644 index 00000000..e69de29b