Yoast\WP\SEO\Config\Migrations
AddIndexesForProminentWordsOnIndexables::up() public Yoast 1.0
Migration up.
{} Это метод класса: AddIndexesForProminentWordsOnIndexables{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$AddIndexesForProminentWordsOnIndexables = new AddIndexesForProminentWordsOnIndexables(); $AddIndexesForProminentWordsOnIndexables->up();
Код AddIndexesForProminentWordsOnIndexables::up() AddIndexesForProminentWordsOnIndexables::up Yoast 16.1.1
public function up() {
$table_name = $this->get_table_name();
$adapter = $this->get_adapter();
if ( ! $adapter->has_index( $table_name, $this->columns_with_index, [ 'name' => 'prominent_words' ] ) ) {
$this->add_index(
$table_name,
$this->columns_with_index,
[
'name' => 'prominent_words',
]
);
}
}