Yoast\WP\Lib\Migrations
Adapter::create_schema_version_table() public Yoast 1.0
Create the schema table, if necessary.
{} Это метод класса: Adapter{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$Adapter = new Adapter(); $Adapter->create_schema_version_table();
Код Adapter::create_schema_version_table() Adapter::create schema version table Yoast 16.1.1
public function create_schema_version_table() {
if ( ! $this->has_table( $this->get_schema_version_table_name() ) ) {
$t = $this->create_table( $this->get_schema_version_table_name() );
$t->column( 'version', 'string', [ 'limit' => 191 ] );
$t->finish();
$this->add_index( $this->get_schema_version_table_name(), 'version', [ 'unique' => true ] );
}
}