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: rename procedure step

Brad Barbin85233a02f998
diff --git a/packages/database/supabase/migrations/20250915115859_procedure-steps.sql b/packages/database/supabase/migrations/20250915115859_procedure-steps.sql
index 786ac46907..4d152cfd16 100644
--- a/packages/database/supabase/migrations/20250915115859_procedure-steps.sql
+++ b/packages/database/supabase/migrations/20250915115859_procedure-steps.sql
@@ -232,12 +232,10 @@ FOR DELETE USING (
);
--- Rename procedureAttribute to procedureStep
-ALTER TABLE "procedureAttribute" RENAME TO "procedureStep";
+-- Skip renaming procedureAttribute to procedureStep since it doesn't exist
+-- procedureStep table already exists with correct name
--- procedureStep table doesn't need renaming (already correct name)
-
--- Update RLS policies for the renamed table
+-- Update RLS policies for the existing procedureStep table
DROP POLICY IF EXISTS "SELECT" ON "public"."procedureStep";
DROP POLICY IF EXISTS "INSERT" ON "public"."procedureStep";
DROP POLICY IF EXISTS "UPDATE" ON "public"."procedureStep";