Yoast\WP\Lib\Migrations
Adapter::drop_table() public Yoast 1.0
Drops a table
{} Это метод класса: Adapter{}
Хуков нет.
Возвращает
true/false. Whether or not the table was succesfully dropped.
Использование
$Adapter = new Adapter(); $Adapter->drop_table( $table );
- $table(строка) (обязательный)
- The table name.
Код Adapter::drop_table() Adapter::drop table Yoast 15.9.1
public function drop_table( $table ) {
$ddl = \sprintf( 'DROP TABLE IF EXISTS %s', $this->identifier( $table ) );
return $this->query( $ddl );
}