zabbix-agent2/src/libs/zbxdbupgrade/dbupgrade_4030.c
/* skip patches that altered table instead of creating new one and copying contents as this fails on newer MariaDB */
skip patches that altered table instead of creating new one and copying contents as this fails on newer MariaDB
skip patches that altered table instead of creating new one and copying contents as this fails on newer MariaDB
static int	DBpatch_4030032(void)
{
#ifdef HAVE_MYSQL
	return SUCCEED;
#else
	const ZBX_FIELD	field = {"name", "", NULL, NULL, 128, ZBX_TYPE_CHAR, ZBX_NOTNULL, 0};
	return DBmodify_field_type("host_inventory", &field, NULL);
#endif
}
static int DBpatch_4030032 ( void ) { #ifdef HAVE_MYSQL return SUCCEED ; #else const ZBX_FIELD field = { " " , " " , NULL , NULL , 128 , ZBX_TYPE_CHAR , ZBX_NOTNULL , 0 } ; return DBmodify_field_type ( " " , & field , NULL ) ; #endif }
skip patches that altered table instead of creating new one and copying contents as this fails on newer MariaDB
skip patches that altered table instead of creating new one and copying contents as this fails on newer MariaDB