
Originally Posted by
daneh
Thanks Clyde.
Do you know of an easy way to rid myself of the tables and such that the captcha mod installed in my database? It didn't come with an uninstall SQL, and that actually concerned me when I installed it....Not knowing how to create an uninstall SQL may actually be a good thing for me...LOL.
OR
Do you think it will be fine to just install the new captcha? It is a live shop.
Run this sql statement using the Zen-Cart Sql Patches tool
(admin -> tools -> install sql patches)
For best results, copy-and-paste the code into the query field and press 'Send'.
Code:
#CAPTCHA Validation SQL Uninstall
SET @configuration_group_id=0;
SELECT @configuration_group_id:=configuration_group_id
FROM configuration_group
WHERE configuration_group_title= 'CAPTCHA Validation'
LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id;
INSERT INTO `configuration` VALUES (NULL, 'Product option type Select', 'PRODUCTS_OPTIONS_TYPE_SELECT', '0', 'The number representing the Select type of product option.', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Upload prefix', 'UPLOAD_PREFIX', 'upload_', 'Prefix used to differentiate between upload options and other options', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Text prefix', 'TEXT_PREFIX', 'txt_', 'Prefix used to differentiate between text option values and other option values', 0, NULL, NULL, now(), NULL, NULL);
INSERT INTO `configuration` VALUES (NULL, 'Image Handler Version', 'IH_VERSION', '2.0', 'This is used by image handler to check if the database is up to date with uploaded image handler files.', 0, 100, NULL, now(), NULL, 'zen_cfg_textarea_small(');
DROP TABLE IF EXISTS `anti_robotreg`;
Bookmarks