if (0 != nextid && ZBX_DB_OK > zbx_db_execute("insert into ids values ('proxy_history','history_lastid'," ZBX_FS_UI64
static int DBpatch_4010001(void)
const zbx_db_field_t field = {"content_type", "1", NULL, NULL, 0, ZBX_TYPE_INT, ZBX_NOTNULL, 0};
return DBadd_field("media_type", &field);
static int DBpatch_4010002(void)
if (0 == (DBget_program_type() & ZBX_PROGRAM_TYPE_SERVER))
if (ZBX_DB_OK > zbx_db_execute("update media_type set content_type=0"))
static int DBpatch_4010003(void)
const zbx_db_field_t field = {"error_handler", "0", NULL, NULL, 0, ZBX_TYPE_INT, ZBX_NOTNULL, 0};
return DBadd_field("item_preproc", &field);
static int DBpatch_4010004(void)
const zbx_db_field_t field = {"error_handler_params", "", NULL, NULL, 255, ZBX_TYPE_CHAR, ZBX_NOTNULL, 0};
return DBadd_field("item_preproc", &field);
static int DBpatch_4010005(void)
const zbx_db_table_t table =
{"lld_macro_path", "lld_macro_pathid", 0,
{"lld_macro_pathid", NULL, NULL, NULL, 0, ZBX_TYPE_ID, ZBX_NOTNULL, 0},