mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Issue #4501 Modified Charset lookup.
This commit is contained in:
parent
d14d47aa65
commit
2328cb4e6e
@ -1101,22 +1101,24 @@ EOF;
|
|||||||
{
|
{
|
||||||
e107::getPlugin()->install('rss_menu');
|
e107::getPlugin()->install('rss_menu');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare table.
|
// Prepare table.
|
||||||
$sql->gen('ALTER TABLE `#rss` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;');
|
$sql->gen('ALTER TABLE `#rss` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;');
|
||||||
$sql->gen('SHOW CREATE TABLE `#rss`');
|
$sql->gen('SHOW TABLE STATUS WHERE Name = "'.MPREFIX.'rss"');
|
||||||
$row = $sql->rows();
|
$row = $sql->fetch('assoc');
|
||||||
self::assertStringNotContainsString('CHARSET=utf8mb4', $row[1]['Create Table']);
|
self::assertStringNotContainsString('CHARSET=utf8mb4', $row['Collation']);
|
||||||
|
|
||||||
// Fix table.
|
// Fix table.
|
||||||
$this->dbv->compare('rss');
|
$this->dbv->compare('rss');
|
||||||
$this->dbv->compileResults();
|
$this->dbv->compileResults();
|
||||||
$this->dbv->runFix();
|
$this->dbv->runFix();
|
||||||
|
|
||||||
// validate table.
|
|
||||||
$sql->gen('SHOW CREATE TABLE `#rss`');
|
|
||||||
$row = $sql->rows();
|
|
||||||
|
|
||||||
self::assertStringContainsString('CHARSET=utf8mb4', $row[1]['Create Table']);
|
// validate table.
|
||||||
|
$sql->gen('SHOW TABLE STATUS WHERE Name = "'.MPREFIX.'rss"');
|
||||||
|
$row = $sql->fetch('assoc');
|
||||||
|
|
||||||
|
self::assertStringContainsString('utf8mb4_general_ci', $row['Collation']);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user