.
Deploy / deploy (push) Successful in 38s

This commit is contained in:
2026-05-07 21:26:48 +02:00
parent ffe1e26cc7
commit 2376ee98e7
3 changed files with 39 additions and 36 deletions
+5 -1
View File
@@ -39,7 +39,11 @@ function migrate($db) {
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)");
try {
$db->exec("ALTER TABLE network_nodes ADD COLUMN notes TEXT DEFAULT ''");
$db->exec("CREATE TABLE IF NOT EXISTS node_notes (
node_id INT PRIMARY KEY,
notes TEXT DEFAULT '',
FOREIGN KEY (node_id) REFERENCES network_nodes(id) ON DELETE CASCADE
)");
} catch (Exception $e) {
}
}