Skip to content

Commit 373ce2e

Browse files
session: add migration code from kvdb to SQL
This commit introduces the migration logic for transitioning the sessions store from kvdb to SQL. Note that as of this commit, the migration is not yet triggered by any production code, i.e. only tests execute the migration logic.
1 parent d5edea7 commit 373ce2e

File tree

3 files changed

+742
-2
lines changed

3 files changed

+742
-2
lines changed

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ require (
3535
github.com/lightningnetwork/lnd/fn v1.2.3
3636
github.com/lightningnetwork/lnd/fn/v2 v2.0.8
3737
github.com/lightningnetwork/lnd/kvdb v1.4.13
38+
github.com/lightningnetwork/lnd/sqldb v1.0.7
3839
github.com/lightningnetwork/lnd/tlv v1.3.0
3940
github.com/lightningnetwork/lnd/tor v1.1.6
4041
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f
4142
github.com/mwitkow/grpc-proxy v0.0.0-20230212185441-f345521cb9c9
4243
github.com/ory/dockertest/v3 v3.10.0
44+
github.com/pmezard/go-difflib v1.0.0
4345
github.com/stretchr/testify v1.10.0
4446
github.com/urfave/cli v1.22.14
4547
go.etcd.io/bbolt v1.3.11
@@ -144,7 +146,6 @@ require (
144146
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb // indirect
145147
github.com/lightningnetwork/lnd/healthcheck v1.2.6 // indirect
146148
github.com/lightningnetwork/lnd/queue v1.1.1 // indirect
147-
github.com/lightningnetwork/lnd/sqldb v1.0.7 // indirect
148149
github.com/lightningnetwork/lnd/ticker v1.1.1 // indirect
149150
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796 // indirect
150151
github.com/mattn/go-isatty v0.0.20 // indirect
@@ -162,7 +163,6 @@ require (
162163
github.com/opencontainers/image-spec v1.0.2 // indirect
163164
github.com/opencontainers/runc v1.2.0 // indirect
164165
github.com/pkg/errors v0.9.1 // indirect
165-
github.com/pmezard/go-difflib v1.0.0 // indirect
166166
github.com/prometheus/client_golang v1.14.0 // indirect
167167
github.com/prometheus/client_model v0.4.0 // indirect
168168
github.com/prometheus/common v0.37.0 // indirect

0 commit comments

Comments
 (0)