add migration to rename meta key for document index #90

This commit is contained in:
Vinícius Nunes 2019-11-08 09:54:59 -03:00
parent 0388a46cbd
commit 37f7a41d35
1 changed files with 5 additions and 0 deletions

View File

@ -419,6 +419,11 @@ class Migrations {
}
static function update_repository_rename_document_index_meta_key() {
global $wpdb;
$wpdb->query( "UPDATE $wpdb->postmeta SET meta_key = 'document_content_index' WHERE meta_key = '_document_content_index'");
}
}