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: backfill target quantities

Brad Barbin6dcc7bbd4c94
diff --git a/packages/database/supabase/migrations/20260120022925_backfill-target-quantity.sql b/packages/database/supabase/migrations/20260120022925_backfill-target-quantity.sql
new file mode 100644
index 0000000000..4d469c45aa
--- /dev/null
+++ b/packages/database/supabase/migrations/20260120022925_backfill-target-quantity.sql
@@ -0,0 +1 @@
+UPDATE "jobOperation" SET "targetQuantity" = "operationQuantity" WHERE "targetQuantity" IS NULL;
\ No newline at end of file