Fix column name: commit_hash → git_commit in novacpx_version INSERT

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-09 22:55:38 +00:00
parent 3b47fc27e7
commit 14aa6e8b4d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ BASH;
// Record new version in novacpx_version table and settings
$newVersion = trim(shell_exec("sudo cat " . escapeshellarg("$srcDir/VERSION") . " 2>/dev/null") ?: '');
if ($newVersion) {
$db->execute("INSERT INTO novacpx_version (version, installed_at, notes, commit_hash) VALUES (?,datetime('now'),?,?)",
$db->execute("INSERT INTO novacpx_version (version, installed_at, notes, git_commit) VALUES (?,datetime('now'),?,?)",
[$newVersion, "Updated via admin panel from {$before} (channel: {$channel})", $after]);
$db->execute("INSERT INTO settings (`key`,`value`,updated_at) VALUES ('panel_version',?,datetime('now')) ON CONFLICT(`key`) DO UPDATE SET value=excluded.value,updated_at=excluded.updated_at",
[$newVersion]);