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.

refactor: change job prefix to J

Rob Carringtoncb6d457982e0
diff --git a/packages/database/supabase/functions/lib/seed.ts b/packages/database/supabase/functions/lib/seed.ts
index 75d7a28b1e..0ddbadecb2 100644
--- a/packages/database/supabase/functions/lib/seed.ts
+++ b/packages/database/supabase/functions/lib/seed.ts
@@ -2035,7 +2035,7 @@ export const sequences = [
{
table: "job",
name: "Job",
- prefix: "WO",
+ prefix: "J",
suffix: null,
next: 0,
size: 6,
diff --git a/packages/database/supabase/migrations/20240925003558_change-job-prefix.sql b/packages/database/supabase/migrations/20240925003558_change-job-prefix.sql
new file mode 100644
index 0000000000..80ad99ef6f
--- /dev/null
+++ b/packages/database/supabase/migrations/20240925003558_change-job-prefix.sql
@@ -0,0 +1 @@
+UPDATE "sequence" SET "prefix" = 'J' WHERE "name" = 'Job';
\ No newline at end of file