Natch
07-03-2004, 10:00 PM
Re: https://vborg.vbsupport.ru/showthread.php?t=66694
If you have installed this, you will encounter an error when running the upgrade script to 3.0.2.
It will occur @ step 4 - please note if you wish to avoid this error, please make the following alteration to your UPGRADE13.PHP script before running your upgrade.
FIND: $query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote DROP INDEX userid";
$explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 1, 2);
$query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote ADD INDEX pollid (pollid, userid)";
$explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 2, 2);
and comment those lines like so:// $query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote DROP INDEX userid";
// $explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 1, 2);
//
// $query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote ADD INDEX pollid (pollid, userid)";
// $explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 2, 2);
HTH all ...
If you have installed this, you will encounter an error when running the upgrade script to 3.0.2.
It will occur @ step 4 - please note if you wish to avoid this error, please make the following alteration to your UPGRADE13.PHP script before running your upgrade.
FIND: $query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote DROP INDEX userid";
$explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 1, 2);
$query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote ADD INDEX pollid (pollid, userid)";
$explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 2, 2);
and comment those lines like so:// $query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote DROP INDEX userid";
// $explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 1, 2);
//
// $query[] = "ALTER TABLE " . TABLE_PREFIX . "pollvote ADD INDEX pollid (pollid, userid)";
// $explain[] = sprintf($upgrade_phrases['upgrade1.php']['altering_x_table'], 'pollvote', 2, 2);
HTH all ...