Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

346 B
Raw Blame
-- Widen productionQuantity.quantity from INTEGER to NUMERIC so it can hold fractional
-- production for weight/length UoMs. Downstream consumers (jobOperation.quantityComplete,
-- itemLedger.quantity, jobMaterial.quantity*) are already NUMERIC.

ALTER TABLE "productionQuantity"
  ALTER COLUMN "quantity" TYPE NUMERIC USING "quantity"::NUMERIC;