From 580155d977e29a0febe47b3f336ec5c0b7d859f0 Mon Sep 17 00:00:00 2001 From: janis steiner Date: Thu, 7 May 2026 21:09:15 +0200 Subject: [PATCH] fix error --- backend/config/database.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend/config/database.php b/backend/config/database.php index c271cf6..58e3a52 100644 --- a/backend/config/database.php +++ b/backend/config/database.php @@ -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 - } \ No newline at end of file + } +} \ No newline at end of file