mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-04 08:07:55 +01:00
fix version sql on check_db.js
This commit is contained in:
parent
dfae0c150d
commit
94df42a306
@ -50,7 +50,7 @@ async function checkConnection() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function checkDatabaseVersion(databaseType) {
|
async function checkDatabaseVersion(databaseType) {
|
||||||
const query = await prisma.$queryRaw`select version() version`;
|
const query = await prisma.$queryRaw`select version() as version`;
|
||||||
const version = semver.valid(semver.coerce(query[0].version));
|
const version = semver.valid(semver.coerce(query[0].version));
|
||||||
|
|
||||||
const minVersion = databaseType === 'postgresql' ? '9.4.0' : '5.6.0';
|
const minVersion = databaseType === 'postgresql' ? '9.4.0' : '5.6.0';
|
||||||
|
Loading…
Reference in New Issue
Block a user