File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ DROP INDEX IF EXISTS graph_channels_node_id_1_idx;
9
9
DROP INDEX IF EXISTS graph_channels_node_id_2_idx;
10
10
DROP INDEX IF EXISTS graph_channels_unique;
11
11
DROP INDEX IF EXISTS graph_channels_version_outpoint_idx;
12
+ DROP INDEX IF EXISTS graph_channels_version_id_idx;
12
13
DROP INDEX IF EXISTS graph_channel_features_unique;
13
14
DROP INDEX IF EXISTS graph_channel_extra_types_unique;
14
15
DROP INDEX IF EXISTS graph_channel_policies_unique;
Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ CREATE TABLE IF NOT EXISTS graph_channels (
173
173
-- indexes on the node_id_1 and node_id_2 columns.
174
174
CREATE INDEX IF NOT EXISTS graph_channels_node_id_1_idx ON graph_channels(node_id_1);
175
175
CREATE INDEX IF NOT EXISTS graph_channels_node_id_2_idx ON graph_channels(node_id_2);
176
+ CREATE INDEX graph_channels_version_id_idx ON graph_channels(version, id);
176
177
177
178
-- A channel (identified by a short channel id) can only have one active
178
179
-- channel announcement per protocol version. We also order the index by
You can’t perform that action at this time.
0 commit comments