From d885f51bdbd37e6b7120c8ca3e22792e8694c951 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Mon, 30 Mar 2026 18:34:24 +0200 Subject: [PATCH] feat: add sync script for appro tables including commande_fou, cdefou_ligne, commande_auto_qtepropo, and plan_reappro --- postgres/init.sql | 2 +- sync/tables/appro.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/postgres/init.sql b/postgres/init.sql index 07058cf..94b7ce6 100644 --- a/postgres/init.sql +++ b/postgres/init.sql @@ -413,7 +413,7 @@ CREATE TABLE IF NOT EXISTS cdefou_ligne ( qteann NUMERIC(12,3), qteatt NUMERIC(12,3), qterel NUMERIC(12,3), - colisage NUMERIC(10,3), + colisage TEXT, suividatecreation TIMESTAMP, suividatemodif TIMESTAMP ); diff --git a/sync/tables/appro.js b/sync/tables/appro.js index 81b2daa..d86f854 100644 --- a/sync/tables/appro.js +++ b/sync/tables/appro.js @@ -94,7 +94,7 @@ async function syncAppro(force) { qteann: r.QTEANN ?? null, qteatt: r.QTEATT ?? null, qterel: r.QTEREL ?? null, - colisage: r.COLISAGE ?? null, + colisage: safeStr(r.COLISAGE), suividatecreation: r.SUIVIDATECREATION, suividatemodif: r.SUIVIDATEMODIF, }));