Fix static errors in runner, add mono_pkg to orm_test

This commit is contained in:
Tobe O 2019-04-02 12:46:17 -04:00
parent 6bc0f0af69
commit 261013aa7e
2 changed files with 2 additions and 2 deletions

View file

@ -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<String> existing = r.expand((x) => x).cast<String>();

View file