Fix static errors in runner, add mono_pkg to orm_test
This commit is contained in:
parent
6bc0f0af69
commit
261013aa7e
2 changed files with 2 additions and 2 deletions
|
@ -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>();
|
||||
|
|
0
angel_orm_test/mono_pkg.yaml
Normal file
0
angel_orm_test/mono_pkg.yaml
Normal file
Loading…
Reference in a new issue