mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
fix version sql on check_db.js
This commit is contained in:
parent
dfae0c150d
commit
94df42a306
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue