WordPress.org

Ready to get started?Download WordPress

Forums

WP-Polls
ALTER TABLE - Duplicate key name [fix] (1 post)

  1. styledev
    Member
    Posted 1 year ago #

    In wp-polls.php fix // Database Upgrade for WP-Polls 2.61 so errors are not generated:

    Changes for lines 1742+

    // Database Upgrade For WP-Polls 2.61
    $version = get_option('poll_version');
    if ( $version < 261 ) {
    add_option('poll_version', 261);
    $wpdb->query("ALTER TABLE $wpdb->pollsip ADD INDEX pollip_ip (pollip_ip);");
    $wpdb->query("ALTER TABLE $wpdb->pollsip ADD INDEX pollip_qid (pollip_qid);");
    }

    http://wordpress.org/extend/plugins/wp-polls/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags