mirror of
https://github.com/juspay/hyperswitch.git
synced 2026-03-13 09:02:06 +08:00
refactor(dynamic_routing): add non_deterministic value in SuccessBasedRoutingConclusiveState type (#6878)
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- This file should undo anything in `up.sql`
|
||||
SELECT 1;
|
||||
@@ -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 $$;
|
||||
Reference in New Issue
Block a user