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
feat: add ingot material shape migration
fiber[bot]e8a3016c9aa0
diff --git a/packages/database/supabase/migrations/20260208020701_add-ingot-material-shape.sql b/packages/database/supabase/migrations/20260208020701_add-ingot-material-shape.sqlnew file mode 100644index 0000000000..b7c3617a7a--- /dev/null+++ b/packages/database/supabase/migrations/20260208020701_add-ingot-material-shape.sql@@ -0,0 +1,22 @@+-- Add ingot as a material shape+INSERT INTO "materialForm" ("id", "name", "code", "createdBy") VALUES+ ('ingot', 'Ingot', 'ING', 'system');++-- Add ingot dimensions (weight-based dimensions commonly used for ingots) - Imperial+INSERT INTO "materialDimension" ("id", "materialFormId", "name", "isMetric", "companyId") VALUES+ ('ingot-1', 'ingot', '1 lb', false, null),+ ('ingot-2', 'ingot', '2 lb', false, null),+ ('ingot-5', 'ingot', '5 lb', false, null),+ ('ingot-10', 'ingot', '10 lb', false, null),+ ('ingot-25', 'ingot', '25 lb', false, null),+ ('ingot-50', 'ingot', '50 lb', false, null),+ ('ingot-100', 'ingot', '100 lb', false, null),++ -- Ingot dimensions (weight-based dimensions for ingots) - Metric+ ('ingot-0-5kg', 'ingot', '0.5 kg', true, null),+ ('ingot-1kg', 'ingot', '1 kg', true, null),+ ('ingot-2kg', 'ingot', '2 kg', true, null),+ ('ingot-5kg', 'ingot', '5 kg', true, null),+ ('ingot-10kg', 'ingot', '10 kg', true, null),+ ('ingot-25kg', 'ingot', '25 kg', true, null),+ ('ingot-50kg', 'ingot', '50 kg', true, null);