Added pre and post db upgrade script support, schema version now visible on the about page (#92)

This commit is contained in:
Michael Green
2023-09-09 23:56:57 +10:00
committed by GitHub
parent 9b77dee37b
commit d67c17528a
7 changed files with 172 additions and 108 deletions

View File

@@ -15,6 +15,10 @@
<th>Server Version</th>
<td id="settings_appversion"></td>
</tr>
<tr>
<th>Database Schema Version</th>
<td id="settings_dbversion"></td>
</tr>
<tr>
<td colspan="2">
<h3>Data Sources</h2>
@@ -42,13 +46,20 @@
The Old School Emulation Center
</td>
</tr>
<tr>
<td>
<a href="https://www.progettosnaps.net/index.php" target="_blank"><img src="/images/ProgettoSnaps.gif" style="height: 36px;" /></a>
</td>
<td>
Progetto-Snaps
</td>
</tr>
</table>
<script type="text/javascript">
ajaxCall('/api/v1/System/Version', 'GET', function (result) {
if (result) {
var versionBox = document.getElementById('settings_appversion');
versionBox.innerHTML = result;
}
});
var versionBox = document.getElementById('settings_appversion');
versionBox.innerHTML = AppVersion;
var versionBox = document.getElementById('settings_dbversion');
versionBox.innerHTML = DBSchemaVersion;
</script>