mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed the dbTest units so they work (#6293)
* fix: Fixed the dbTest units so they work * fix schema, should now pass
This commit is contained in:
committed by
Tony Murray
parent
962c47168c
commit
cf509f138b
@@ -110,6 +110,10 @@ if (!module_selected('nodb', $init_modules)) {
|
||||
die;
|
||||
}
|
||||
$database_db = mysqli_select_db($database_link, $config['db_name']);
|
||||
if (!$database_db) {
|
||||
mysqli_query($database_link, "CREATE DATABASE " . $config['db_name'] . " CHARACTER SET utf8 COLLATE utf8_unicode_ci");
|
||||
$database_db = mysqli_select_db($database_link, $config['db_name']);
|
||||
}
|
||||
dbQuery("SET NAMES 'utf8'");
|
||||
dbQuery("SET CHARACTER SET 'utf8'");
|
||||
dbQuery("SET COLLATION_CONNECTION = 'utf8_unicode_ci'");
|
||||
|
Reference in New Issue
Block a user