summaryrefslogtreecommitdiff
path: root/src/backenddb/merchant-0002.sql
diff options
context:
space:
mode:
Diffstat (limited to 'src/backenddb/merchant-0002.sql')
-rw-r--r--src/backenddb/merchant-0002.sql6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backenddb/merchant-0002.sql b/src/backenddb/merchant-0002.sql
index e5e91631..76371a42 100644
--- a/src/backenddb/merchant-0002.sql
+++ b/src/backenddb/merchant-0002.sql
@@ -51,11 +51,11 @@ CREATE INDEX IF NOT EXISTS merchant_contract_terms_by_merchant_and_session
ALTER TABLE merchant_deposit_confirmations
- ADD COLUMN deposit_deadline INT8 DEFAULT (0) NOT NULL,
+ ADD COLUMN wire_transfer_deadline INT8 DEFAULT (0) NOT NULL,
ADD COLUMN wire_pending BOOL DEFAULT (TRUE) NOT NULL,
ADD COLUMN exchange_failure TEXT DEFAULT NULL;
-COMMENT ON COLUMN merchant_deposit_confirmations.deposit_deadline
+COMMENT ON COLUMN merchant_deposit_confirmations.wire_transfer_deadline
IS 'when should the exchange make the wire transfer at the latest';
COMMENT ON COLUMN merchant_deposit_confirmations.wire_pending
IS 'true if we are awaiting wire details for a deposit of this purchase and are not blocked on KYC';
@@ -64,7 +64,7 @@ COMMENT ON COLUMN merchant_deposit_confirmations.exchange_failure
CREATE INDEX IF NOT EXISTS merchant_deposit_confirmations_by_pending_wire
ON merchant_deposit_confirmations
- (exchange_url,deposit_deadline)
+ (exchange_url,wire_transfer_deadline)
WHERE wire_pending;
CREATE INDEX IF NOT EXISTS merchant_deposits_by_deposit_confirmation_serial