From 3a264aabcae35bdfeb2c217daa0a63587cbe27ff Mon Sep 17 00:00:00 2001 From: Elle Mouton Date: Wed, 11 Jun 2025 14:05:56 +0200 Subject: [PATCH] sqldb: fix graph DROP order Ensure that the graph tables are dropped in reverse dependency order. --- sqldb/sqlc/migrations/000007_graph.down.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sqldb/sqlc/migrations/000007_graph.down.sql b/sqldb/sqlc/migrations/000007_graph.down.sql index 667a6099d..5b3ceaeaf 100644 --- a/sqldb/sqlc/migrations/000007_graph.down.sql +++ b/sqldb/sqlc/migrations/000007_graph.down.sql @@ -12,11 +12,11 @@ DROP INDEX IF EXISTS channel_features_unique; DROP INDEX IF EXISTS channel_extra_types_unique; -- Drop tables in order of reverse dependencies. +DROP TABLE IF EXISTS channel_features; +DROP TABLE IF EXISTS channel_extra_types; +DROP TABLE IF EXISTS channels; DROP TABLE IF EXISTS source_nodes; DROP TABLE IF EXISTS node_addresses; DROP TABLE IF EXISTS node_features; DROP TABLE IF EXISTS node_extra_types; -DROP TABLE IF EXISTS nodes; -DROP TABLE IF EXISTS channels; -DROP TABLE IF EXISTS channel_features; -DROP TABLE IF EXISTS channel_extra_types; \ No newline at end of file +DROP TABLE IF EXISTS nodes; \ No newline at end of file