fix(database): error getting db version number

This commit is contained in:
chenos 2022-08-12 10:13:12 +08:00
parent 38c3e3e4cc
commit 458b7a52fb

View File

@ -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;
}, },