mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13162] Use db tools for truncating
PHPBB3-13162
This commit is contained in:
@@ -364,12 +364,9 @@ class doctrine implements tools_interface
|
||||
}
|
||||
|
||||
/**
|
||||
* Truncate the table
|
||||
*
|
||||
* @param string $table_name
|
||||
* @return void
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function sql_truncate_table(string $table_name)
|
||||
public function sql_truncate_table(string $table_name): void
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@@ -207,4 +207,12 @@ interface tools_interface
|
||||
* @return bool|string[] True if the statements have been executed
|
||||
*/
|
||||
public function sql_create_primary_key(string $table_name, $column);
|
||||
|
||||
/**
|
||||
* Truncate the table
|
||||
*
|
||||
* @param string $table_name
|
||||
* @return void
|
||||
*/
|
||||
public function sql_truncate_table(string $table_name): void;
|
||||
}
|
||||
|
Reference in New Issue
Block a user