Source
if (ZBX_DB_OK > zbx_db_execute("delete from profiles where idx='web.auditlog.filter.action' and value_int=-1"))
/*
** 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/>.
**/
/*
* 6.2 development database patches
*/
static int DBpatch_6010000(void)
{
if (0 == (DBget_program_type() & ZBX_PROGRAM_TYPE_SERVER))
return SUCCEED;
if (ZBX_DB_OK > zbx_db_execute("update users set passwd='' where length(passwd)=%d", ZBX_MD5_SIZE))
return FAIL;
return SUCCEED;
}
static int DBpatch_6010001(void)
{
const zbx_db_field_t field = {"vault_provider", "0", NULL, NULL, 0, ZBX_TYPE_INT, ZBX_NOTNULL, 0};
return DBadd_field("config", &field);
}
static int DBpatch_6010002(void)
{
zbx_db_result_t result;
zbx_db_row_t row;
int ret = SUCCEED;
char *sql = NULL, *descripton_esc;
size_t sql_alloc = 0, sql_offset = 0;
result = zbx_db_select(
"select triggerid,description"
" from triggers"
" where " ZBX_DB_CHAR_LENGTH(description) ">%d", 255);