Skip to content

Commit

Permalink
refactor(dynamic_routing): add non_deterministic value in SuccessBase…
Browse files Browse the repository at this point in the history
…dRoutingConclusiveState type (#6878)
  • Loading branch information
prajjwalkumar17 authored Dec 30, 2024
1 parent 227c274 commit 849fbbf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
SELECT 1;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-- Your SQL goes here
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1
FROM pg_enum
WHERE enumlabel = 'non_deterministic'
AND enumtypid = (SELECT oid FROM pg_type WHERE typname = 'SuccessBasedRoutingConclusiveState')
) THEN
ALTER TYPE "SuccessBasedRoutingConclusiveState" ADD VALUE 'non_deterministic';
END IF;
END $$;

0 comments on commit 849fbbf

Please sign in to comment.