| @@ -55,9 +55,9 @@ | ||
| 55 | 55 | |
| 56 | 56 | $removeIndexes = ['object_id', 'object_type', 'type']; |
| 57 | 57 | |
| 58 | 58 | foreach ($indexes as $index) { |
| 59 | - if (in_array($index->Column_name, $removeIndexes)) { | |
| 59 | + if (in_array($index->Key_name, $removeIndexes)) { | |
| 60 | 60 | $wpdb->query("ALTER TABLE $table DROP INDEX $index->Key_name"); |
| 61 | 61 | } |
| 62 | 62 | } |
| 63 | 63 | } |