From 38b2135f016eef063be0e96a239f1b8d2a2f1813 Mon Sep 17 00:00:00 2001 From: janis steiner Date: Thu, 7 May 2026 21:55:24 +0200 Subject: [PATCH] . --- backend/config/database.php | 2 +- docker/init.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/config/database.php b/backend/config/database.php index 4fc73f6..78e3945 100644 --- a/backend/config/database.php +++ b/backend/config/database.php @@ -40,7 +40,7 @@ function migrate($db) { )"); try { $rootDb = new PDO("mysql:host=" . (getenv('DB_HOST') ?: 'mysql') . ";charset=utf8mb4", 'root', getenv('MYSQL_ROOT_PASSWORD') ?: 'neptune_root_pass'); - $rootDb->exec("ALTER TABLE neptune.network_nodes ADD COLUMN IF NOT EXISTS notes TEXT DEFAULT '' AFTER group_name"); + $rootDb->exec("ALTER TABLE neptune.network_nodes ADD COLUMN IF NOT EXISTS notes VARCHAR(1000) DEFAULT '' AFTER group_name"); } catch (Exception $e) { } } \ No newline at end of file diff --git a/docker/init.sql b/docker/init.sql index 3696bd8..073ce3f 100644 --- a/docker/init.sql +++ b/docker/init.sql @@ -33,7 +33,7 @@ CREATE TABLE IF NOT EXISTS network_nodes ( node_type ENUM('host','server','router','firewall','switch','cloud','endpoint','other') DEFAULT 'host', status ENUM('online','offline','unknown','compromised','monitoring') DEFAULT 'unknown', group_name VARCHAR(100) DEFAULT 'default', - notes TEXT DEFAULT '', + notes VARCHAR(1000) DEFAULT '', pos_x FLOAT DEFAULT 0, pos_y FLOAT DEFAULT 0, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP