fix(database): error getting db version number
This commit is contained in:
parent
38c3e3e4cc
commit
458b7a52fb
@ -86,7 +86,7 @@ class DatabaseVersion {
|
||||
postgres: {
|
||||
sql: 'select version() as version',
|
||||
get: (v) => {
|
||||
const keys = v.split(' ');
|
||||
const keys = v.split(/\s|,/);
|
||||
keys.shift();
|
||||
return semver.minVersion(keys.shift()).version;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user