Switch to utf8mb4 (#12580)

* Switch to utf8mb4

This allows emojis to function correctly

* Update URLs
This commit is contained in:
Jellyfrog
2021-03-28 16:23:08 +02:00
committed by GitHub
parent 896386d2c7
commit f06e81b357
21 changed files with 2152 additions and 1653 deletions

View File

@@ -59,8 +59,8 @@ return [
'username' => env('DB_USERNAME', 'librenms'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
@@ -78,8 +78,8 @@ return [
'username' => env('DB_TEST_USERNAME', 'root'),
'password' => env('DB_TEST_PASSWORD', ''),
'unix_socket' => env('DB_TEST_SOCKET', ''),
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,