mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Alter the database to set the proper character set and collation (#6189)
This commit is contained in:
committed by
Neil Lathwood
parent
b2afa147c6
commit
0f5091d273
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user