DELETE FROM `#__rsform_component_types` WHERE `ComponentTypeId` IN (2525);

INSERT IGNORE INTO `#__rsform_component_types` (`ComponentTypeId`, `ComponentTypeName`, `CanBeDuplicated`) VALUES
(2525, 'joomlacaptcha', 0);

DELETE FROM `#__rsform_component_type_fields` WHERE `ComponentTypeId` = 2525;
INSERT IGNORE INTO `#__rsform_component_type_fields` (`ComponentTypeId`, `FieldName`, `FieldType`, `FieldValues`, `Ordering`) VALUES
(2525, 'NAME', 'textbox', '', 0),
(2525, 'CAPTION', 'textbox', '', 1),
(2525, 'ADDITIONALATTRIBUTES', 'textarea', '', 2),
(2525, 'DESCRIPTION', 'textarea', '', 3),
(2525, 'VALIDATIONMESSAGE', 'textarea', 'INVALIDINPUT', 4),
(2525, 'CAPTCHA', 'select', '//<code>\n$mainframe = \\Joomla\\CMS\\Factory::getApplication();\n$response = $mainframe->triggerEvent(\'onRsformBackendGetAvailableCaptchas\', array());\nreturn $response[0];\n//</code>', 5),
(2525, 'COMPONENTTYPE', 'hidden', '2525', 6);