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:
Neil Lathwood
2017-03-29 22:13:30 +01:00
committed by Tony Murray
parent 962c47168c
commit cf509f138b
7 changed files with 13 additions and 6 deletions

View File

@@ -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'");