@cryptotaxi247 / netdata-1 / commits / 183309058

Drop duplicate / unused index (#15568)

Stelios Fragkakis committed Jul 27, 2023 at 15:11 UTC 183309058ab1158d35392a84fc8270279bd3b28a
1 file changed +1 -2
database/sqlite/sqlite_functions.c
+1 -2
@@ -34,8 +34,6 @@ const char *database_config[] = {
34 "repeat text, host_labels text, p_db_lookup_dimensions text, p_db_lookup_method text, p_db_lookup_options int, "
35 "p_db_lookup_after int, p_db_lookup_before int, p_update_every int, source text, chart_labels text);",
36
37 - "CREATE INDEX IF NOT EXISTS alert_hash_index ON alert_hash (hash_id);",
38 -
37 "CREATE TABLE IF NOT EXISTS host_info(host_id blob, system_key text NOT NULL, system_value text NOT NULL, "
38 "date_created INT, PRIMARY KEY(host_id, system_key));",
39
@@ -75,6 +73,7 @@ const char *database_cleanup[] = {
73 "DROP INDEX IF EXISTS ind_d1;",
74 "DROP INDEX IF EXISTS ind_c1;",
75 "DROP INDEX IF EXISTS ind_c2;",
76 + "DROP INDEX IF EXISTS alert_hash_index;",
77 NULL
78 };
79