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, }));