Skip to content

Commit

Permalink
Add error logging when DB version too low
Browse files Browse the repository at this point in the history
  • Loading branch information
ecartz committed Nov 5, 2021
1 parent 5f33a7c commit c16c2ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install/rpc.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
list($number) = explode('-', $version);

if (version_compare($number, '5.7.7', '<')) {
error_log("Version [$version] not at least MySQL 5.7.7");
exit("[[-5|$version]]");
}

Expand All @@ -51,6 +52,7 @@
exit('[[1]]');
}

error_log("Version [$version] not at least MariaDB 10.2.2");
exit("[[-10|$version]]");

case 'dbImport':
Expand Down

0 comments on commit c16c2ad

Please sign in to comment.