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.

368 B
Raw Blame
-- Add the 'locationId' column to the 'quoteLine' table
ALTER TABLE "quoteLine" ADD COLUMN IF NOT EXISTS "locationId" TEXT;

-- Add a foreign key constraint for 'locationId' referencing the 'location' table
ALTER TABLE "quoteLine" ADD CONSTRAINT "quoteLine_locationId_fkey" FOREIGN KEY ("locationId") REFERENCES "location" ("id") ON DELETE RESTRICT ON UPDATE CASCADE;