Yoast\WP\SEO\Config\Migrations
ExpandIndexableColumnLengths::up() public Yoast 1.0
Migration up.
{} Это метод класса: ExpandIndexableColumnLengths{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$ExpandIndexableColumnLengths = new ExpandIndexableColumnLengths(); $ExpandIndexableColumnLengths->up();
Код ExpandIndexableColumnLengths::up() ExpandIndexableColumnLengths::up Yoast 16.1.1
public function up() {
$this->change_column( $this->get_table_name(), 'title', 'text', [ 'null' => true ] );
$this->change_column( $this->get_table_name(), 'open_graph_title', 'text', [ 'null' => true ] );
$this->change_column( $this->get_table_name(), 'twitter_title', 'text', [ 'null' => true ] );
$this->change_column( $this->get_table_name(), 'open_graph_image_source', 'text', [ 'null' => true ] );
$this->change_column( $this->get_table_name(), 'twitter_image_source', 'text', [ 'null' => true ] );
}