-- Adds fk_pl_group column to llx_workstation_workstation_extrafields
-- This replaces the free-text pl_group Dolibarr extrafield approach.
-- FK references llx_planning_ws_group.rowid (no hard constraint — module may be disabled).

SET NAMES utf8mb4;

ALTER TABLE llx_workstation_workstation_extrafields
    ADD COLUMN IF NOT EXISTS fk_pl_group INT UNSIGNED NULL DEFAULT NULL
    COMMENT 'Planning board group (FK to llx_planning_ws_group.rowid)';
