Signed-off-by: Oliver Sand <oliver.sand@sda-se.com>
This commit is contained in:
Oliver Sand
2021-08-05 09:22:07 +02:00
parent 6a65db7b04
commit fcc5cb62f7
@@ -17,7 +17,7 @@ import { Knex } from 'knex';
export async function queryPostgresMajorVersion(knex: Knex): Promise<number> {
if (knex.client.config.client !== 'pg') {
throw new Error("Can' resolve version, not a postgres database");
throw new Error("Can't resolve version, not a postgres database");
}
const { rows } = await knex.raw('SHOW server_version_num');