Yoast\WP\Lib\Migrations
Migration::add_column() public Yoast 1.0
Adds a column.
{} Это метод класса: Migration{}
Хуков нет.
Возвращает
true/false.
Использование
$Migration = new Migration(); $Migration->add_column( $table_name, $column_name, $type, $options );
- $table_name(строка) (обязательный)
- The name of the table.
- $column_name(строка) (обязательный)
- The column name.
- $type(строка) (обязательный)
- The column type.
- $options(массив/строка)
- The options.
Код Migration::add_column() Migration::add column Yoast 15.9.1
public function add_column( $table_name, $column_name, $type, $options = [] ) {
return $this->adapter->add_column( $table_name, $column_name, $type, $options );
}