Skip to content

Commit

Permalink
Multisite: fix migration undefined table
Browse files Browse the repository at this point in the history
  • Loading branch information
corsacca authored Dec 16, 2024
1 parent 40813ab commit 96399e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dt-core/migrations/0052-usermeta-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function up() {
and index_name like %s
", DB_NAME, 'index_user_id_meta_key' ));
if ( $index_exists === 0 ){
$wpdb->query( "ALTER TABLE `{$wpdb->prefix}usermeta` ADD INDEX index_user_id_meta_key (user_id, meta_key)" );
$wpdb->query( "ALTER TABLE `$wpdb->usermeta` ADD INDEX index_user_id_meta_key (user_id, meta_key)" );
}
}

Expand Down

0 comments on commit 96399e6

Please sign in to comment.