From c758337ff3def2f31919ed7280b116fd9c310b57 Mon Sep 17 00:00:00 2001 From: perco Date: Tue, 12 May 2026 15:02:41 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20budget:=20widen=20month=20columns=20VARCH?= =?UTF-8?q?AR(7=E2=86=9210)=20to=20match=20Y-m-01=20query=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pf_expenses.gestion_month, pf_alloc_values.month_date, pf_savings.month_date were VARCHAR(7) but budget views query with Y-m-01 (10 chars) — converted all imported data in househub_f2 accordingly. Co-Authored-By: Claude Sonnet 4.6 --- docker/schema_family.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/schema_family.sql b/docker/schema_family.sql index 5c3e599..baf878d 100644 --- a/docker/schema_family.sql +++ b/docker/schema_family.sql @@ -91,7 +91,7 @@ CREATE TABLE IF NOT EXISTS pf_budget_items ( CREATE TABLE IF NOT EXISTS pf_expenses ( id INT AUTO_INCREMENT PRIMARY KEY, date_exp DATE NOT NULL, - gestion_month VARCHAR(7) NOT NULL, + gestion_month VARCHAR(10) NOT NULL, category VARCHAR(100), label VARCHAR(255), amount DECIMAL(10,2) DEFAULT 0, @@ -110,7 +110,7 @@ CREATE TABLE IF NOT EXISTS pf_alloc_categories ( CREATE TABLE IF NOT EXISTS pf_alloc_values ( id INT AUTO_INCREMENT PRIMARY KEY, - month_date VARCHAR(7) NOT NULL, + month_date VARCHAR(10) NOT NULL, cat_id INT NOT NULL, amount_alex DECIMAL(10,2) DEFAULT 0, amount_laia DECIMAL(10,2) DEFAULT 0, @@ -120,7 +120,7 @@ CREATE TABLE IF NOT EXISTS pf_alloc_values ( CREATE TABLE IF NOT EXISTS pf_savings ( id INT AUTO_INCREMENT PRIMARY KEY, owner VARCHAR(50) NOT NULL, - month_date VARCHAR(7) NOT NULL, + month_date VARCHAR(10) NOT NULL, category VARCHAR(100) NOT NULL, amount DECIMAL(10,2) DEFAULT 0, holiday_id INT DEFAULT NULL