This repository was archived by the owner on Nov 26, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed
Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,14 @@ tools:
1111 external_code_coverage : false
1212
1313build :
14+ services :
15+ mysql : 5.7
1416 environment :
15- version : 8.1.2
16- mysql : false
17+ php :
18+ version : 8.1.2
19+ ini :
20+ xdebug.mode : coverage
21+ mysql : 5.7
1722 node : false
1823 postgresql : false
1924 mongodb : false
3035 dependencies :
3136 before :
3237 - composer self-update
33- - composer update --no-interaction --prefer-dist --no-progress
38+ - composer install --no-interaction --prefer-dist --no-progress
39+ - mysql -u root -e "CREATE DATABASE IF NOT EXISTS database_test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
3440 tests :
3541 before :
3642 - command : composer test:coverage
Original file line number Diff line number Diff line change @@ -56,13 +56,10 @@ protected function createTestTable(): void
5656 `created_user_id` INT(11) DEFAULT NULL,
5757 `updated` DATETIME DEFAULT NULL,
5858 `updated_user_id` INT(11) DEFAULT NULL,
59- `deleted` DATETIME DEFAULT NULL,
60- `deleted_user_id` INT(11) DEFAULT NULL,
6159 PRIMARY KEY (`id`),
6260 KEY `created_user_id` (`created_user_id`),
63- KEY `updated_user_id` (`updated_user_id`),
64- KEY `deleted_user_id` (`deleted_user_id`)
65- ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; '
61+ KEY `updated_user_id` (`updated_user_id`)
62+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; '
6663 );
6764 }
6865
@@ -76,8 +73,8 @@ protected function getPdo(): PDO
7673 $ host = '127.0.0.1 ' ;
7774 $ username = 'root ' ;
7875 $ password = isset ($ _SERVER ['GITHUB_ACTIONS ' ]) ? 'root ' : '' ;
79- $ charset = 'utf8 ' ;
80- $ collate = 'utf8_unicode_ci ' ;
76+ $ charset = 'utf8mb4 ' ;
77+ $ collate = 'utf8mb4_unicode_ci ' ;
8178 $ options = [
8279 PDO ::ATTR_ERRMODE => PDO ::ERRMODE_EXCEPTION ,
8380 PDO ::ATTR_PERSISTENT => false ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments