Changes between Initial Version and Version 1 of Ticket #10404, comment 5
- Timestamp:
- 02/19/2013 05:07:12 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #10404, comment 5
initial v1 2 2 3 3 Here is the error after a recent plugin activation: 4 {{{ 4 5 WordPress database error Too many keys specified; max 64 keys allowed for query ALTER TABLE wp_2_store_locator ADD INDEX (sl_store) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), include_once('/plugins/store-locator-le/store-locator-le.php'), wpCSL_plugin__slplus->__construct, call_user_func_array, SLPlus_Activate::update, SLPlus_Activate->install_main_table, SLPlus_Activate->dbupdater, dbDelta 5 6 }}} 6 7 7 8 Here is the dbDelta structure from my plugin: 9 {{{ 8 10 $sql = "CREATE TABLE $table_name ( 9 11 sl_id mediumint(8) unsigned NOT NULL auto_increment, … … 40 42 "; 41 43 dbDelta($sql) 42 44 }}} 43 45 44 46 45 47 The table now has a number of duplicate indexes: 46 48 {{{ 47 49 sl_store 48 50 sl_store_2 … … 60 62 ... 61 63 sl_longitude_21 62 64 }}} 63 65 64 66 Am I using dbDelta incorrectly or is this still a known issue? Any workarounds?