1 charset_converter.inc | public DatabaseCharsetConverter::convertTables($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 $charset: (Optional) The character set. Defaults to the constructor value.
string $collation: (Optional) The collation. Defaults to the constructor value.
Throws
PDOException
File
- core/
includes/ database/ charset_converter.inc, line 157
Class
- DatabaseCharsetConverter
- Character set converter for database tables.
Code
public function convertTables($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);
}
}