build fix

This commit is contained in:
Jan Prochazka 2023-02-12 12:44:40 +01:00
parent 10d5667c83
commit 5e207a6c16

View File

@ -101,7 +101,7 @@ class Dumper extends SqlDumper {
}
selectScopeIdentity(table) {
const column = table.columns?.find(x => x.autoIncrement);
const column = table.columns && table.columns.find(x => x.autoIncrement);
this.put("^SELECT currval(pg_get_serial_sequence('%f','%s'))", table, column ? column.columnName : null);
}
}