aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/cln_schema.sql
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-18 07:41:21 -0700
committerAdam Soltys <[email protected]>2026-06-18 07:41:21 -0700
commit45a988b3554f44abd03a2d89f1b9087c993186c1 (patch)
tree9f46283758b23e973ba7fd6f0bc1dd15f1cd8083 /scripts/cln_schema.sql
parent2d2f9856b31ac98665f008a00550efa224761f9a (diff)
downloadcoinos-server-45a988b3554f44abd03a2d89f1b9087c993186c1.tar.gz
coinos-server-45a988b3554f44abd03a2d89f1b9087c993186c1.zip
scripts: add dedup-invoices cleanup for already-duplicated :invoices
The source fix (LPOS guard in generate, 2d2f9856) stops NEW duplicate entries but doesn't remove the ones already accumulated. This one-time script scrubs them: scans every <id>:invoices list and removes duplicate ids, keeping each id's original creation-order position. Dry-run by default; pass --apply to write. Idempotent. Scope on a recent prod snapshot: 2,785 of 8,735 lists had dupes (16,363 duplicate entries). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'scripts/cln_schema.sql')
0 files changed, 0 insertions, 0 deletions