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.

fix: convert rfq migration

Brad Barbinbd0a6c708dbc
diff --git a/packages/database/supabase/migrations/20240704105128_rfq.sql b/packages/database/supabase/migrations/20240704105128_rfq.sql
index 8dd71b1ca0..7e8e9752f3 100644
--- a/packages/database/supabase/migrations/20240704105128_rfq.sql
+++ b/packages/database/supabase/migrations/20240704105128_rfq.sql
@@ -47,7 +47,7 @@ CREATE TABLE "salesRfqLine" (
"id" TEXT NOT NULL DEFAULT xid(),
"salesRfqId" TEXT NOT NULL,
"customerPartNumber" TEXT NOT NULL,
- "customerPartRevision" TEXT,
+ "customerRevisionId" TEXT,
"itemId" TEXT,
"description" TEXT,
"quantity" NUMERIC(20, 2)[] DEFAULT ARRAY[]::NUMERIC(20, 2)[],
diff --git a/packages/database/supabase/migrations/20240811231527_convert-rfq.sql b/packages/database/supabase/migrations/20240811231527_convert-rfq.sql
index 0cceecbc0f..b7dea7e574 100644
--- a/packages/database/supabase/migrations/20240811231527_convert-rfq.sql
+++ b/packages/database/supabase/migrations/20240811231527_convert-rfq.sql
@@ -92,7 +92,7 @@ CREATE POLICY "Employees with sales_delete can delete salesRfqLine" ON "salesRfq
ALTER TABLE "salesRfqLine"
DROP COLUMN "customerPartNumber",
- DROP COLUMN "customerPartRevision";
+ DROP COLUMN "customerRevisionId";
ALTER TABLE "salesRfqLine"
ADD COLUMN "customerPartId" TEXT NOT NULL,