-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dynamic_routing): add non_deterministic value in SuccessBase…
…dRoutingConclusiveState type (#6878)
- Loading branch information
1 parent
227c274
commit 849fbbf
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...ations/2024-12-18-124527_add_new_value_in_success_based_routing_conclusive_state/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- This file should undo anything in `up.sql` | ||
SELECT 1; |
12 changes: 12 additions & 0 deletions
12
migrations/2024-12-18-124527_add_new_value_in_success_based_routing_conclusive_state/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 $$; |