feat(router): separate straight through algorithm in separate column in payment attempt (#863)

This commit is contained in:
ItsMeShashank
2023-04-12 18:27:17 +05:30
committed by GitHub
parent 1b94d25f66
commit 01f86c499d
15 changed files with 104 additions and 121 deletions

View File

@ -0,0 +1,9 @@
-- This file should undo anything in `up.sql`
ALTER TABLE payment_attempt
ALTER COLUMN connector TYPE JSONB
USING jsonb_build_object(
'routed_through', connector,
'algorithm', straight_through_algorithm
);
ALTER TABLE payment_attempt DROP COLUMN straight_through_algorithm;