Internal help: Add database server version

master
François-Xavier Thomas 5 years ago committed by jvoisin
parent 3acd06e91b
commit bd4153962f
  1. 1
      airsonic-main/src/main/java/org/airsonic/player/controller/InternalHelpController.java
  2. 1
      airsonic-main/src/main/resources/org/airsonic/player/i18n/ResourceBundle_en.properties
  3. 1
      airsonic-main/src/main/webapp/WEB-INF/jsp/internalhelp.jsp

@ -298,6 +298,7 @@ public class InternalHelpController {
// Driver name/version // Driver name/version
map.put("dbDriverName", conn.getMetaData().getDriverName()); map.put("dbDriverName", conn.getMetaData().getDriverName());
map.put("dbDriverVersion", conn.getMetaData().getDriverVersion()); map.put("dbDriverVersion", conn.getMetaData().getDriverVersion());
map.put("dbServerVersion", conn.getMetaData().getDatabaseProductVersion());
// Gather information for existing database tables // Gather information for existing database tables
ResultSet resultSet = conn.getMetaData().getTables(null, null, "%", null); ResultSet resultSet = conn.getMetaData().getTables(null, null, "%", null);

@ -308,6 +308,7 @@ internalhelp.dbnonpresent.ok=The database does not contain non-present items.
internalhelp.dbnonpresent.warn=The database contains non-present items. Run "clean-up database" to clean them up. internalhelp.dbnonpresent.warn=The database contains non-present items. Run "clean-up database" to clean them up.
internalhelp.dbdrivername=Database driver name internalhelp.dbdrivername=Database driver name
internalhelp.dbdriverversion=Database driver version internalhelp.dbdriverversion=Database driver version
internalhelp.dbserverversion=Database server version
internalhelp.dbdirectorysize=Size of the internal database directory internalhelp.dbdirectorysize=Size of the internal database directory
internalhelp.dblogsize=Size of the internal database log internalhelp.dblogsize=Size of the internal database log
internalhelp.dblogsize.ok=The size of the database log file (db/airsonic.log) appears healthy. internalhelp.dblogsize.ok=The size of the database log file (db/airsonic.log) appears healthy.

@ -101,6 +101,7 @@
<tr><td class="ruleTableHeader"><fmt:message key="internalhelp.dbdrivername"/></td><td class="ruleTableCell">${model.dbDriverName}</td></tr> <tr><td class="ruleTableHeader"><fmt:message key="internalhelp.dbdrivername"/></td><td class="ruleTableCell">${model.dbDriverName}</td></tr>
<tr><td class="ruleTableHeader"><fmt:message key="internalhelp.dbdriverversion"/></td><td class="ruleTableCell">${model.dbDriverVersion}</td></tr> <tr><td class="ruleTableHeader"><fmt:message key="internalhelp.dbdriverversion"/></td><td class="ruleTableCell">${model.dbDriverVersion}</td></tr>
<tr><td class="ruleTableHeader"><fmt:message key="internalhelp.dbserverversion"/></td><td class="ruleTableCell">${model.dbServerVersion}</td></tr>
<c:if test="${model.dbIsLegacy}"> <c:if test="${model.dbIsLegacy}">
<tr><td class="ruleTableHeader"><fmt:message key="internalhelp.dbdirectorysize"/></td><td class="ruleTableCell">${model.dbDirectorySize}</td></tr> <tr><td class="ruleTableHeader"><fmt:message key="internalhelp.dbdirectorysize"/></td><td class="ruleTableCell">${model.dbDirectorySize}</td></tr>

Loading…
Cancel
Save