fix missing column in open_channel_htlc

This commit is contained in:
Jesse de Wit
2024-03-07 10:25:36 +01:00
parent 2ee709b927
commit b55a3e8c6b
3 changed files with 6 additions and 1 deletions

View File

@@ -271,11 +271,12 @@ func (i *Interceptor) Intercept(req common.InterceptRequest) common.InterceptRes
// Don't break here, this is not critical. // Don't break here, this is not critical.
log.Printf( log.Printf(
"paymentHash: %s, failed to insert htlc used for channel open in history store: channel: %v,"+ "paymentHash: %s, failed to insert htlc used for channel open in history store: channel: %v,"+
" original amount: %v, forward amount: %v", " original amount: %v, forward amount: %v, error: %v",
reqPaymentHashStr, reqPaymentHashStr,
channelPoint.String(), channelPoint.String(),
req.OutgoingAmountMsat, req.OutgoingAmountMsat,
amt, amt,
err,
) )
} }

View File

@@ -0,0 +1,2 @@
ALTER TABLE public.open_channel_htlcs
DROP COLUMN incoming_amt_msat;

View File

@@ -0,0 +1,2 @@
ALTER TABLE public.open_channel_htlcs
ADD COLUMN incoming_amt_msat bigint NOT NULL;