Skip to content

Commit cf82fa2

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 db050ba commit cf82fa2

File tree

3 files changed

+742
-2
lines changed

3 files changed

+742
-2
lines changed

go.mod

+2-2
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.16
38+
github.com/lightningnetwork/lnd/sqldb v1.0.9
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
@@ -143,7 +145,6 @@ require (
143145
github.com/lightningnetwork/lightning-onion v1.2.1-0.20240712235311-98bd56499dfb // indirect
144146
github.com/lightningnetwork/lnd/healthcheck v1.2.6 // indirect
145147
github.com/lightningnetwork/lnd/queue v1.1.1 // indirect
146-
github.com/lightningnetwork/lnd/sqldb v1.0.9 // indirect
147148
github.com/lightningnetwork/lnd/ticker v1.1.1 // indirect
148149
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796 // indirect
149150
github.com/mattn/go-isatty v0.0.20 // indirect
@@ -161,7 +162,6 @@ require (
161162
github.com/opencontainers/image-spec v1.1.0 // indirect
162163
github.com/opencontainers/runc v1.2.0 // indirect
163164
github.com/pkg/errors v0.9.1 // indirect
164-
github.com/pmezard/go-difflib v1.0.0 // indirect
165165
github.com/prometheus/client_golang v1.14.0 // indirect
166166
github.com/prometheus/client_model v0.4.0 // indirect
167167
github.com/prometheus/common v0.37.0 // indirect

0 commit comments

Comments
 (0)