Skip to content

Commit 419ebec

Browse files
committed
feat(mysql8): upgrade tests/ci to run on mysql8 and latest node
1 parent 49843e6 commit 419ebec

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,19 @@ jobs:
231231
NODE_ENV: test
232232
AWS_XRAY_LOG_LEVEL: silent
233233
AWS_XRAY_CONTEXT_MISSING: LOG_ERROR
234-
- image: mysql:5.6
234+
- image: mysql:8.0
235235
auth:
236236
username: $DOCKERHUB_USERNAME
237237
password: $DOCKERHUB_PASSWORD
238238
environment:
239239
MYSQL_ALLOW_EMPTY_PASSWORD: yes
240240
TZ: 'US/Central'
241+
command:
242+
- mysqld
243+
- --sql_mode=NO_ENGINE_SUBSTITUTION
244+
- --character-set-server=UTF8MB3
245+
- --collation-server=utf8_unicode_ci
246+
- --default_authentication_plugin=mysql_native_password
241247
- image: cimg/node:20.9
242248
auth:
243249
username: $DOCKERHUB_USERNAME

.docker/mysql/schema/schema.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
CREATE DATABASE IF NOT EXISTS `readitla_ril-tmp`;
22
USE `readitla_ril-tmp`;
33

4+
SET GLOBAL explicit_defaults_for_timestamp = 0;
5+
46
CREATE TABLE `curated_feed_prospects` (
57
`prospect_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
68
`feed_id` int(10) unsigned NOT NULL DEFAULT '0',

docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
- HOSTNAME_EXTERNAL=localstack
3131

3232
mysql:
33-
image: mysql:5.6
33+
image: mysql:8.0
3434
env_file:
3535
- ./.docker/local.env
3636
ports:
@@ -40,3 +40,9 @@ services:
4040
environment:
4141
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
4242
- TZ=US/Central
43+
command:
44+
- mysqld
45+
- --sql_mode=NO_ENGINE_SUBSTITUTION
46+
- --character-set-server=UTF8MB3
47+
- --collation-server=utf8_unicode_ci
48+
- --default_authentication_plugin=mysql_native_password

0 commit comments

Comments
 (0)