Skip to content

Commit 3a264aa

Browse files
committed
sqldb: fix graph DROP order
Ensure that the graph tables are dropped in reverse dependency order.
1 parent 35102e7 commit 3a264aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sqldb/sqlc/migrations/000007_graph.down.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ DROP INDEX IF EXISTS channel_features_unique;
1212
DROP INDEX IF EXISTS channel_extra_types_unique;
1313

1414
-- Drop tables in order of reverse dependencies.
15+
DROP TABLE IF EXISTS channel_features;
16+
DROP TABLE IF EXISTS channel_extra_types;
17+
DROP TABLE IF EXISTS channels;
1518
DROP TABLE IF EXISTS source_nodes;
1619
DROP TABLE IF EXISTS node_addresses;
1720
DROP TABLE IF EXISTS node_features;
1821
DROP TABLE IF EXISTS node_extra_types;
19-
DROP TABLE IF EXISTS nodes;
20-
DROP TABLE IF EXISTS channels;
21-
DROP TABLE IF EXISTS channel_features;
22-
DROP TABLE IF EXISTS channel_extra_types;
22+
DROP TABLE IF EXISTS nodes;

0 commit comments

Comments
 (0)