graph/db: migrate prune log

This commit expands the `MigrateGraphToSQL` to include migration of the
prune log.
This commit is contained in:
Elle Mouton committed 2025-07-11 09:15:47 +02:00
1 parent 63609b0801
commit 03ede9ccef
6 files changed
+252

No files matched your search

+5
View File
@@ -728,6 +728,11 @@ FROM prune_log
ORDER BY block_height DESC
LIMIT 1;
-- name: GetPruneHashByHeight :one
SELECT block_hash
FROM prune_log
WHERE block_height = $1;
-- name: DeletePruneLogEntriesInRange :exec
DELETE FROM prune_log
WHERE block_height >= @start_height