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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix: remove investigation types from new company seed script
Brad Barbin638f6893ed3d
diff --git a/packages/database/supabase/functions/seed-company/index.ts b/packages/database/supabase/functions/seed-company/index.tsindex 9c64ba891a..11b9eb8c0a 100644--- a/packages/database/supabase/functions/seed-company/index.ts+++ b/packages/database/supabase/functions/seed-company/index.ts@@ -12,7 +12,6 @@ import {gaugeTypes,groupCompanyTemplate,groups,- nonConformanceInvestigationTypes,nonConformanceRequiredActions,nonConformanceTypes,paymentTerms,@@ -210,13 +209,6 @@ serve(async (req: Request) => {.values(nonConformanceTypes.map((nc) => ({ ...nc, companyId }))).execute();- await trx- .insertInto("nonConformanceInvestigationType")- .values(- nonConformanceInvestigationTypes.map((nc) => ({ ...nc, companyId }))- )- .execute();-await trx.insertInto("nonConformanceRequiredAction").values(