diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2023-07-20 23:23:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-20 23:23:31 +0300 |
commit | 5607d21c025bf79aa80fccb5ad07842a31066aef (patch) | |
tree | bdc0248fe4e84a62f675b5f7f4f0d8bca09594e9 /database/sqlite/sqlite_functions.c | |
parent | b762b050afa8dc19726d5b0d395b452c0510b1eb (diff) |
Store and transmit chart_name to cloud in alert events (#15441)
Diffstat (limited to 'database/sqlite/sqlite_functions.c')
-rw-r--r-- | database/sqlite/sqlite_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/database/sqlite/sqlite_functions.c b/database/sqlite/sqlite_functions.c index 4200c15901..d7c2809915 100644 --- a/database/sqlite/sqlite_functions.c +++ b/database/sqlite/sqlite_functions.c @@ -3,7 +3,7 @@ #include "sqlite_functions.h" #include "sqlite_db_migration.h" -#define DB_METADATA_VERSION 10 +#define DB_METADATA_VERSION 11 const char *database_config[] = { "CREATE TABLE IF NOT EXISTS host(host_id BLOB PRIMARY KEY, hostname TEXT NOT NULL, " @@ -47,7 +47,7 @@ const char *database_config[] = { "CREATE TABLE IF NOT EXISTS health_log (health_log_id INTEGER PRIMARY KEY, host_id blob, alarm_id int, " "config_hash_id blob, name text, chart text, family text, recipient text, units text, exec text, " - "chart_context text, last_transition_id blob, UNIQUE (host_id, alarm_id)) ;", + "chart_context text, last_transition_id blob, chart_name text, UNIQUE (host_id, alarm_id)) ;", "CREATE INDEX IF NOT EXISTS health_log_ind_1 ON health_log (host_id);", |