Commit e4a7ed23 authored by Cédric Anne's avatar Cédric Anne
Browse files

Use utf8mb4 MySQL character set

 - Use utf8mb4 as default charset for fresh installation
 - utf8mb4 migration command
 - warn for collation mix on migration
 - Force ROW_FORMAT = Dynamic on fresh install
 - Add warning on central page if some tables are not migrated
parent f5318ec7
......@@ -224,12 +224,13 @@ jobs:
docker exec app bin/console glpi:migration:myisam_to_innodb --config-dir=./tests --no-interaction | grep -q "Aucune migration requise." || (echo "glpi:migration:myisam_to_innodb command FAILED" && exit 1)
docker exec app bin/console glpi:migration:timestamps --config-dir=./tests --no-interaction
docker exec app bin/console glpi:migration:timestamps --config-dir=./tests --no-interaction | grep -q "Aucune migration requise." || (echo "glpi:migration:timestamps command FAILED" && exit 1)
docker exec app bin/console glpi:migration:utf8mb4 --config-dir=./tests --no-interaction
docker exec app bin/console glpi:migration:utf8mb4 --config-dir=./tests --no-interaction | grep -q "Aucune migration requise." || (echo "glpi:migration:utf8mb4 command FAILED" && exit 1)
- name: "Database tests"
if: env.skip != 'true'
run: |
docker exec app bin/console glpi:database:configure --config-dir=./tests --no-interaction --reconfigure --db-name=glpi --db-host=db --db-user=root
docker exec app bin/console glpi:database:configure --config-dir=./tests --no-interaction --reconfigure --db-name=glpi --db-host=db --db-user=root --use-utf8mb4
docker exec app vendor/bin/atoum -p 'php -d memory_limit=512M' --debug --force-terminal --use-dot-report --bootstrap-file tests/bootstrap.php --no-code-coverage --fail-if-skipped-methods --max-children-number 1 -d tests/database
docker exec app bin/console glpi:database:configure --config-dir=./tests --no-interaction --reconfigure --db-name=glpi --db-host=db --db-user=root
- name: "Unit tests"
if: env.skip != 'true'
run: |
......
......@@ -13,6 +13,9 @@ The present file will list all changes made to the project; according to the
### Deprecated
- Usage of XML-RPC API is deprecated.
### Removed
- Usage of alternative DB connection encoding (`DB::$dbenc` property).
### API changes
#### Added
......
......@@ -59,6 +59,10 @@
"upload",
"widget"
],
"support": {
"forum": "https://stackoverflow.com/questions/tagged/blueimp+jquery+file-upload",
"source": "https://github.com/vkhramtsov/jQuery-File-Upload/tree/v10.31.0"
},
"funding": [
{
"url": "https://github.com/blueimp",
......@@ -111,6 +115,10 @@
"brick",
"math"
],
"support": {
"issues": "https://github.com/brick/math/issues",
"source": "https://github.com/brick/math/tree/master"
},
"funding": [
{
"url": "https://tidelift.com/funding/github/packagist/brick/math",
......@@ -148,6 +156,10 @@
],
"description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
"homepage": "https://github.com/container-interop/container-interop",
"support": {
"issues": "https://github.com/container-interop/container-interop/issues",
"source": "https://github.com/container-interop/container-interop/tree/master"
},
"abandoned": "psr/container",
"time": "2017-02-14T19:40:03+00:00"
},
......@@ -187,6 +199,10 @@
"emoji",
"php-emoji"
],
"support": {
"issues": "https://github.com/elvanto/litemoji/issues",
"source": "https://github.com/elvanto/litemoji/tree/3.0.1"
},
"time": "2020-11-27T05:08:33+00:00"
},
{
......@@ -267,6 +283,10 @@
"rest",
"web service"
],
"support": {
"issues": "https://github.com/guzzle/guzzle/issues",
"source": "https://github.com/guzzle/guzzle/tree/7.2.0"
},
"funding": [
{
"url": "https://github.com/GrahamCampbell",
......@@ -336,6 +356,10 @@
"keywords": [
"promise"
],
"support": {
"issues": "https://github.com/guzzle/promises/issues",
"source": "https://github.com/guzzle/promises/tree/1.4.0"
},
"time": "2020-09-30T07:37:28+00:00"
},
{
......@@ -407,6 +431,10 @@
"uri",
"url"
],
"support": {
"issues": "https://github.com/guzzle/psr7/issues",
"source": "https://github.com/guzzle/psr7/tree/1.7.0"
},
"time": "2020-09-30T07:37:11+00:00"
},
{
......@@ -466,6 +494,10 @@
"autolink",
"link"
],
"support": {
"issues": "https://github.com/iamcal/lib_autolink/issues",
"source": "https://github.com/iamcal/lib_autolink/tree/master"
},
"time": "2015-05-22T17:10:41+00:00"
},
{
......@@ -550,6 +582,14 @@
"psr-16",
"psr-6"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-cache/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-cache/issues",
"rss": "https://github.com/laminas/laminas-cache/releases.atom",
"source": "https://github.com/laminas/laminas-cache"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -605,6 +645,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-apc/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-apc/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-apc/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-apc"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -660,6 +707,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-apcu/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-apcu/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-apcu/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-apcu"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -712,6 +766,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-blackhole/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-blackhole/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-blackhole/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-blackhole"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -767,6 +828,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-dba/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-dba/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-dba/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-dba"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -822,6 +890,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-ext-mongodb/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-ext-mongodb/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-ext-mongodb/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-ext-mongodb"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -874,6 +949,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-filesystem/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-filesystem/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-filesystem/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-filesystem"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -929,6 +1011,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-memcache/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-memcache/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-memcache/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-memcache"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -981,6 +1070,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-memcached/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-memcached/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-memcached/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-memcached"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1033,6 +1129,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-memory/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-memory/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-memory/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-memory"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1085,6 +1188,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-mongodb/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-mongodb/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-mongodb/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-mongodb"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1137,6 +1247,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-redis/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-redis/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-redis/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-redis"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1193,6 +1310,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-session/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-session/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-session/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-session"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1248,6 +1372,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-wincache/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-wincache/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-wincache/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-wincache"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1304,6 +1435,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-xcache/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-xcache/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-xcache/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-xcache"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1356,6 +1494,13 @@
"cache",
"laminas"
],
"support": {
"docs": "https://docs.laminas.dev/laminas-cache-storage-adapter-zend-server/",
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-cache-storage-adapter-zend-server/issues",
"rss": "https://github.com/laminas/laminas-cache-storage-adapter-zend-server/releases.atom",
"source": "https://github.com/laminas/laminas-cache-storage-adapter-zend-server"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1420,6 +1565,14 @@
"events",
"laminas"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-eventmanager/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-eventmanager/issues",
"rss": "https://github.com/laminas/laminas-eventmanager/releases.atom",
"source": "https://github.com/laminas/laminas-eventmanager"
},
"time": "2019-12-31T16:44:52+00:00"
},
{
......@@ -1495,6 +1648,14 @@
"i18n",
"laminas"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-i18n/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-i18n/issues",
"rss": "https://github.com/laminas/laminas-i18n/releases.atom",
"source": "https://github.com/laminas/laminas-i18n"
},
"time": "2020-03-29T12:51:08+00:00"
},
{
......@@ -1549,6 +1710,14 @@
"json",
"laminas"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-json/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-json/issues",
"rss": "https://github.com/laminas/laminas-json/releases.atom",
"source": "https://github.com/laminas/laminas-json"
},
"time": "2019-12-31T17:15:04+00:00"
},
{
......@@ -1598,6 +1767,14 @@
"laminas",
"loader"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-loader/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-loader/issues",
"rss": "https://github.com/laminas/laminas-loader/releases.atom",
"source": "https://github.com/laminas/laminas-loader"
},
"time": "2019-12-31T17:18:27+00:00"
},
{
......@@ -1660,6 +1837,14 @@
"laminas",
"mail"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-mail/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-mail/issues",
"rss": "https://github.com/laminas/laminas-mail/releases.atom",
"source": "https://github.com/laminas/laminas-mail"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1720,6 +1905,14 @@
"laminas",
"mime"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-mime/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-mime/issues",
"rss": "https://github.com/laminas/laminas-mime/releases.atom",
"source": "https://github.com/laminas/laminas-mime"
},
"time": "2020-03-29T13:12:07+00:00"
},
{
......@@ -1781,6 +1974,14 @@
"laminas",
"serializer"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-serializer/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-serializer/issues",
"rss": "https://github.com/laminas/laminas-serializer/releases.atom",
"source": "https://github.com/laminas/laminas-serializer"
},
"time": "2019-12-31T17:42:11+00:00"
},
{
......@@ -1853,6 +2054,14 @@
"service-manager",
"servicemanager"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-servicemanager/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-servicemanager/issues",
"rss": "https://github.com/laminas/laminas-servicemanager/releases.atom",
"source": "https://github.com/laminas/laminas-servicemanager"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -1909,6 +2118,14 @@
"laminas",
"stdlib"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-stdlib/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-stdlib/issues",
"rss": "https://github.com/laminas/laminas-stdlib/releases.atom",
"source": "https://github.com/laminas/laminas-stdlib"
},
"time": "2019-12-31T17:51:15+00:00"
},
{
......@@ -1988,6 +2205,14 @@
"laminas",
"validator"
],
"support": {
"chat": "https://laminas.dev/chat",
"docs": "https://docs.laminas.dev/laminas-validator/",
"forum": "https://discourse.laminas.dev",
"issues": "https://github.com/laminas/laminas-validator/issues",
"rss": "https://github.com/laminas/laminas-validator/releases.atom",
"source": "https://github.com/laminas/laminas-validator"
},
"time": "2020-03-31T18:57:01+00:00"
},
{
......@@ -2036,6 +2261,12 @@
"laminas",
"zf"
],
"support": {
"forum": "https://discourse.laminas.dev/",
"issues": "https://github.com/laminas/laminas-zendframework-bridge/issues",
"rss": "https://github.com/laminas/laminas-zendframework-bridge/releases.atom",
"source": "https://github.com/laminas/laminas-zendframework-bridge"
},
"funding": [
{
"url": "https://funding.communitybridge.org/projects/laminas-project",
......@@ -2114,6 +2345,12 @@
"transform",
"write"
],
"support": {
"docs": "https://csv.thephpleague.com",
"issues": "https://github.com/thephpleague/csv/issues",
"rss": "https://github.com/thephpleague/csv/releases.atom",
"source": "https://github.com/thephpleague/csv"
},
"funding": [
{
"url": "https://github.com/sponsors/nyamsprod",
......@@ -2169,6 +2406,10 @@
"frontend",
"ui"
],
"support": {
"issues": "https://github.com/mexitek/phpColors/issues",
"source": "https://github.com/mexitek/phpColors"
},
"time": "2020-11-05T06:04:47+00:00"
},
{
......@@ -2218,6 +2459,10 @@
"keywords": [
"markdown"
],
"support": {
"issues": "https://github.com/michelf/php-markdown/issues",
"source": "https://github.com/michelf/php-markdown/tree/1.9.0"
},
"time": "2019-12-02T02:32:27+00:00"
},
{
......@@ -2300,6 +2545,10 @@
"logging",
"psr-3"
],
"support": {
"issues": "https://github.com/Seldaek/monolog/issues",
"source": "https://github.com/Seldaek/monolog/tree/2.2.0"
},
"funding": [
{
"url": "https://github.com/Seldaek",
......@@ -2462,6 +2711,10 @@
}
],
"description": "PHPMailer is a full-featured email creation and transfer class for PHP",
"support": {
"issues": "https://github.com/PHPMailer/PHPMailer/issues",
"source": "https://github.com/PHPMailer/PHPMailer/tree/v6.2.0"
},
"funding": [
{
"url": "https://github.com/Synchro",
......@@ -2514,6 +2767,9 @@
"psr",
"psr-6"
],
"support": {
"source": "https://github.com/php-fig/cache/tree/master"
},
"time": "2016-08-06T20:24:11+00:00"
},
{
......@@ -2563,6 +2819,10 @@
"container-interop",
"psr"
],
"support": {
"issues": "https://github.com/php-fig/container/issues",
"source": "https://github.com/php-fig/container/tree/master"
},
"time": "2017-02-14T16:28:37+00:00"
},
{
......@@ -2612,6 +2872,9 @@
"psr",
"psr-18"
],
"support": {
"source": "https://github.com/php-fig/http-client/tree/master"
},
"time": "2020-06-29T06:28:15+00:00"
},
{
......@@ -2662,6 +2925,9 @@
"request",
"response"
],
"support": {
"source": "https://github.com/php-fig/http-message/tree/master"
},
"time": "2016-08-06T14:39:51+00:00"
},
{
......@@ -2709,6 +2975,9 @@
"psr",
"psr-3"
],
"support": {
"source": "https://github.com/php-fig/log/tree/1.1.3"
},
"time": "2020-03-23T09:12:05+00:00"
},
{
......@@ -2757,6 +3026,9 @@
"psr-16",
"simple-cache"
],
"support": {
"source": "https://github.com/php-fig/simple-cache/tree/master"
},
"time": "2017-10-23T01:57:42+00:00"
},
{
......@@ -2797,6 +3069,10 @@
}
],
"description": "A polyfill for getallheaders.",
"support": {
"issues": "https://github.com/ralouphie/getallheaders/issues",
"source": "https://github.com/ralouphie/getallheaders/tree/develop"
},
"time": "2019-03-08T08:55:37+00:00"
},
{
......@@ -2860,6 +3136,10 @@
"queue",
"set"
],
"support": {
"issues": "https://github.com/ramsey/collection/issues",
"source": "https://github.com/ramsey/collection/tree/1.1.1"
},
"funding": [
{
"url": "https://github.com/ramsey",
......@@ -2947,6 +3227,11 @@
"identifier",
"uuid"
],
"support": {
"issues": "https://github.com/ramsey/uuid/issues",
"rss": "https://github.com/ramsey/uuid/releases.atom",
"source": "https://github.com/ramsey/uuid"
},
"funding": [
{
"url": "https://github.com/ramsey",
......@@ -2998,6 +3283,10 @@
"recurring",
"rrule"
],
"support": {
"issues": "https://github.com/rlanvin/php-rrule/issues",
"source": "https://github.com/rlanvin/php-rrule/tree/v2.2.1"
},
"time": "2020-12-09T22:13:35+00:00"
},
{
......@@ -3505,6 +3794,10 @@
"scss",
"stylesheet"
],
"support": {
"issues": "https://github.com/scssphp/scssphp/issues",
"source": "https://github.com/scssphp/scssphp/tree/v1.4.0"
},
"time": "2020-11-07T20:53:41+00:00"
},
{
......@@ -3561,6 +3854,10 @@
"unidiff",
"unified diff"
],
"support": {
"issues": "https://github.com/sebastianbergmann/diff/issues",
"source": "https://github.com/sebastianbergmann/diff/tree/3.0.3"
},
"funding": [
{
"url": "https://github.com/sebastianbergmann",
......@@ -3634,6 +3931,10 @@
"feeds",
"rss"
],
"support": {
"issues": "https://github.com/simplepie/simplepie/issues",
"source": "https://github.com/simplepie/simplepie/tree/1.5.6"
},
"time": "2020-10-14T07:17:22+00:00"
},
{
......@@ -3706,6 +4007,9 @@
],