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.

253 B
Raw Blame
ALTER TABLE "trackedEntity" ADD COLUMN "readableId" TEXT;

UPDATE "trackedEntity" 
SET "readableId" = attributes->>'Batch Number'
WHERE attributes ? 'Batch Number' 
  AND attributes->>'Batch Number' IS NOT NULL 
  AND attributes->>'Batch Number' != '';