fix: Alter the database to set the proper character set and collation (#6189)

This commit is contained in:
Tony Murray
2017-03-13 19:14:45 -05:00
committed by Neil Lathwood
parent b2afa147c6
commit 0f5091d273

View File

@@ -59,6 +59,9 @@ if ($tmp[0] <= $db_rev) {
return;
}
// Set Database Character set and Collation
dbQuery('ALTER DATABASE ? CHARACTER SET utf8 COLLATE utf8_unicode_ci;', array(array($config['db_name'])));
$limit = 150; //magic marker far enough in the future
foreach ($filelist as $file) {
list($filename,$extension) = explode('.', $file, 2);