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