mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 13:54:51 +00:00
Add Current App Version by checking the current commit hash, also moved Database version on top with App Version in Debug
This commit is contained in:
@@ -8,6 +8,9 @@ require_once "config.php";
|
|||||||
|
|
||||||
$checks = [];
|
$checks = [];
|
||||||
|
|
||||||
|
// Execute the git command to get the latest commit hash
|
||||||
|
$commitHash = exec('git log -1 --format=%H');
|
||||||
|
|
||||||
// Section: System Information
|
// Section: System Information
|
||||||
$systemInfo = [];
|
$systemInfo = [];
|
||||||
|
|
||||||
@@ -316,10 +319,6 @@ if ($tablesResult) {
|
|||||||
}
|
}
|
||||||
$tablesResult->free();
|
$tablesResult->free();
|
||||||
|
|
||||||
$databaseStats[] = [
|
|
||||||
'name' => 'Current Database Version',
|
|
||||||
'value' => CURRENT_DATABASE_VERSION,
|
|
||||||
];
|
|
||||||
$databaseStats[] = [
|
$databaseStats[] = [
|
||||||
'name' => 'Total number of tables',
|
'name' => 'Total number of tables',
|
||||||
'value' => $totalTables,
|
'value' => $totalTables,
|
||||||
@@ -518,6 +517,17 @@ $mysqli->close();
|
|||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
|
<table class="table table-bordered mb-3">
|
||||||
|
<tr>
|
||||||
|
<td>Current App Version</td>
|
||||||
|
<th><?php echo $commitHash; ?></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Current DB Version</td>
|
||||||
|
<th><?php echo CURRENT_DATABASE_VERSION; ?></th>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
<!-- System Information Table -->
|
<!-- System Information Table -->
|
||||||
<h3>System Information</h3>
|
<h3>System Information</h3>
|
||||||
<table class="table table-sm table-bordered">
|
<table class="table table-sm table-bordered">
|
||||||
|
|||||||
Reference in New Issue
Block a user