From 7ff082250d53dc4007526f28a353a4ff46bcb30a Mon Sep 17 00:00:00 2001 From: lacatoire Date: Tue, 10 Feb 2026 17:18:50 +0100 Subject: [PATCH] Increase fac_Config.Value column size for upgraded installations Installations upgraded from older versions still have VARCHAR(200) for the Value column in fac_Config, which is too short for long LDAP base search paths. New installs already use TEXT from create.sql. This migration ensures upgraded installations get the same column type. Fixes #1104 --- db-23.04-to-25.01.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/db-23.04-to-25.01.sql b/db-23.04-to-25.01.sql index 6f1c63bcc..bbbe6539a 100644 --- a/db-23.04-to-25.01.sql +++ b/db-23.04-to-25.01.sql @@ -111,4 +111,10 @@ ALTER TABLE fac_TemplatePowerPorts ADD COLUMN ConnectorID int(11) DEFAULT NULL A ALTER TABLE fac_TemplatePowerPorts ADD COLUMN PhaseID int(11) DEFAULT NULL AFTER ConnectorID; ALTER TABLE fac_TemplatePowerPorts ADD COLUMN VoltageID int(11) DEFAULT NULL AFTER PhaseID; +-- +-- Increase fac_Config.Value column size for upgraded installations +-- New installs already have TEXT type from create.sql +-- +ALTER TABLE fac_Config MODIFY Value text NOT NULL; + UPDATE fac_Config set Value="25.01" WHERE Parameter="Version";