graph/db+sqldb: make channel SQL mig retry-safe

In this commit, we make the channel part of the graph SQL migration
idempotent (retry-safe!). We do this by adding a migration-only channel
insert query that will not error out if a the query is called and a
chanenl with the given scid&version already exists. We also ensure that
errors are not thrown if existing channel features & extra types are
re-added.
This commit is contained in:
Elle Mouton committed 2025-09-01 08:05:21 +02:00
1 parent a291d6f1a6
commit 8736fcafa8
6 files changed
+267 -61

No files matched your search

-1
View File
@@ -225,7 +225,6 @@ func TestMigrateGraphToSQL(t *testing.T) {
numNodes: 4,
numChannels: 3,
},
expNotRetrySafety: true,
},
{
name: "channels and policies",