Source
if (ZBX_DB_OK <= zbx_db_execute("update config set blink_period=%d where blink_period>%d", SEC_PER_DAY, SEC_PER_DAY))
/*
** Copyright (C) 2001-2024 Zabbix SIA
**
** This program is free software: you can redistribute it and/or modify it under the terms of
** the GNU Affero General Public License as published by the Free Software Foundation, version 3.
**
** This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
** without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU Affero General Public License for more details.
**
** You should have received a copy of the GNU Affero General Public License along with this program.
** If not, see <https://www.gnu.org/licenses/>.
**/
/*
* 3.2 development database patches
*/
static int DBpatch_3010000(void)
{
return DBdrop_index("history_log", "history_log_2");
}
static int DBpatch_3010001(void)
{
return DBdrop_field("history_log", "id");
}
static int DBpatch_3010002(void)
{
return DBdrop_index("history_text", "history_text_2");
}
static int DBpatch_3010003(void)
{
return DBdrop_field("history_text", "id");
}
static int DBpatch_3010004(void)
{
const zbx_db_field_t field = {"recovery_mode", "0", NULL, NULL, 0, ZBX_TYPE_INT, ZBX_NOTNULL, 0};
return DBadd_field("triggers", &field);
}
static int DBpatch_3010005(void)
{
const zbx_db_field_t field = {"recovery_expression", "", NULL, NULL, 2048, ZBX_TYPE_CHAR, ZBX_NOTNULL, 0};
return DBadd_field("triggers", &field);
}