1 charset_converter.inc | public DatabaseCharsetConverter::convertTables(array $table_names, $charset = NULL, $collation = NULL) |
Converts all the tables defined by backdrop_get_schema().
Parameters
array $table_names: A list of table names to convert. These should be actual table names in the database, with any table prefixes already prepended.
string|null $charset: (Optional) The character set. Defaults to the constructor value.
string|null $collation: (Optional) The collation. Defaults to the constructor value.
Throws
PDOException
File
- core/
includes/ database/ charset_converter.inc, line 156
Class
- DatabaseCharsetConverter
- Character set converter for database tables.
Code
public function convertTables(array $table_names, $charset = NULL, $collation = NULL) {
foreach ($table_names as $table_name) {
if (!$this->connection->schema()->tableExists($table_name)) {
continue;
}
$this->convertTable($table_name, $charset, $collation);
}
}