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.

387 B
Raw Blame
-- Add a "Cancelled" terminal status to change orders so a CO can be closed
-- (abandoned before release) from any open stage and later reopened to Draft.
-- Mirrors the job lifecycle (Cancel -> Cancelled -> Reopen). Appended at the end
-- of the enum; ADD VALUE IF NOT EXISTS is idempotent across retries / DB resets.
ALTER TYPE "changeOrderStatus" ADD VALUE IF NOT EXISTS 'Cancelled';