mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
update mysql min versino to 5.7
This commit is contained in:
parent
939f4752bb
commit
e8ca23c390
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ async function checkDatabaseVersion(databaseType) {
|
||||||
const query = await prisma.$queryRaw`select version() version`;
|
const query = await prisma.$queryRaw`select version() 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.7.0';
|
||||||
|
|
||||||
if (semver.lt(version, minVersion)) {
|
if (semver.lt(version, minVersion)) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue