Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

fix version sql on check_db.js

Duarte Ferreira94df42a306b0
diff --git a/scripts/check-db.js b/scripts/check-db.js
index f4913e5dd..1cbf25ff4 100644
--- a/scripts/check-db.js
+++ b/scripts/check-db.js
@@ -50,7 +50,7 @@ async function checkConnection() {
}
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 minVersion = databaseType === 'postgresql' ? '9.4.0' : '5.6.0';