fix error
Deploy / deploy (push) Successful in 39s

This commit is contained in:
2026-05-07 21:09:15 +02:00
parent 08feacf718
commit 580155d977
+1 -2
View File
@@ -38,12 +38,11 @@ function migrate($db) {
role ENUM('admin','user') DEFAULT 'user',
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)");
// Add notes column if missing
try {
$r = $db->query("SHOW COLUMNS FROM network_nodes LIKE 'notes'");
if ($r->rowCount() === 0) {
$db->exec("ALTER TABLE network_nodes ADD COLUMN notes TEXT DEFAULT '' AFTER group_name");
}
} catch (Exception $e) {
// Table might not exist yet, ignore
}
}