ALTER TABLE `devices` CHANGE `community` `snmp_community` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL, CHANGE `authlevel` `snmp_authlevel` ENUM('noAuthNoPriv','authNoPriv','authPriv') CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL, CHANGE `authname` `snmp_authname` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL, CHANGE `authpass` `snmp_authpass` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL, CHANGE `authalgo` `snmp_authalgo` ENUM('MD5','SHA') CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL, CHANGE `cryptopass` `snmp_cryptopass` VARCHAR(64) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL, CHANGE `cryptoalgo` `snmp_cryptoalgo` ENUM('AES','DES') CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL, CHANGE `snmpver` `snmp_version` ENUM('v1','v2c','v3') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'v2c', CHANGE `port` `snmp_port` SMALLINT(5) UNSIGNED NOT NULL DEFAULT '161', CHANGE `timeout` `snmp_timeout` INT(11) NULL DEFAULT NULL, CHANGE `retries` `snmp_retries` INT(11) NULL DEFAULT NULL;
ALTER TABLE `devices` CHANGE `transport` `snmp_transport` ENUM('udp','tcp','udp6','tcp6') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'udp';