DeclarationTVA/sql/migration_fix_line_label_length.sql
Frank Cools 575a644c64 Fix line_label length limit causing issues with many account mappings
- Created migration to change line_label from varchar(255) to TEXT
- Added truncation logic to prevent future line_label length issues (1000 char limit)
- This fixes the issue where 11 accounts mapped to line 08 base caused display problems
- The calculation should now work correctly with any number of account mappings
2025-10-03 15:30:48 +02:00

12 lines
576 B
SQL

-- Migration to fix line_label field length issue
-- The varchar(255) limit was causing problems with many account mappings
-- This increases it to TEXT to handle long account label combinations
-- Update the line_label field to TEXT to handle long account combinations
ALTER TABLE `llx_declarationtva_ca3_lines`
MODIFY COLUMN `line_label` TEXT DEFAULT NULL;
-- Add comment to document the change
ALTER TABLE `llx_declarationtva_ca3_lines`
MODIFY COLUMN `line_label` TEXT DEFAULT NULL COMMENT 'Combined account labels for this CA-3 line (can be long with many accounts)';