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: migration error
Brad Barbin7110e839ea1e
diff --git a/packages/database/supabase/migrations/20240909194622_jobs.sql b/packages/database/supabase/migrations/20240909194622_jobs.sqlindex 72327d9a80..61d8993ffd 100644--- a/packages/database/supabase/migrations/20240909194622_jobs.sql+++ b/packages/database/supabase/migrations/20240909194622_jobs.sql@@ -24,6 +24,8 @@ CREATE TYPE module AS ENUM ('Users');+ALTER TABLE "employeeTypePermission" DROP CONSTRAINT IF EXISTS "employeeTypePermission_pkey";+-- Update existing tables and views that use the module typeALTER TABLE "employeeTypePermission"ALTER COLUMN "module" TYPE module USING (@@ -35,6 +37,8 @@ ALTER TABLE "employeeTypePermission"END);+ALTER TABLE "employeeTypePermission" ADD PRIMARY KEY ("employeeTypeId", "module", "permission");+ALTER TABLE "customFieldTable"ALTER COLUMN "module" TYPE module USING (CASE