refactor(dynamic_routing): add non_deterministic value in SuccessBasedRoutingConclusiveState type (#6878)

This commit is contained in:
Prajjwal Kumar
2024-12-30 12:57:09 +05:30
committed by GitHub
parent 227c274ece
commit 849fbbf71b
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
SELECT 1;

View File

@@ -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 $$;