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.

Merge branch 'dev' of https://github.com/umami-software/umami into dev

Francis Cao16ece9ad6440
diff --cc scripts/check-db.js
index 080453908,1cbf25ff4..3fd3a9089
--- a/scripts/check-db.js
+++ b/scripts/check-db.js
@@@ -50,10 -50,10 +50,10 @@@ 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';
+ const minVersion = databaseType === 'postgresql' ? '9.4.0' : '5.7.0';
if (semver.lt(version, minVersion)) {
throw new Error(