Skip to content

Commit

Permalink
Fix database migrations by pinning MariaDB version
Browse files Browse the repository at this point in the history
When running database migrations with the latest 10.4.31, they fail as
shown in issue #1212. Pinning the point release of MariaDB to the latest
known-good version maneuvers around this issue.

Co-authored-by: Sevket Gökay <sevketgokay@gmail.com>
  • Loading branch information
sirhcel and goekay committed Aug 19, 2023
1 parent 0a2e75b commit 3fd9ff6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
java: [ '11', '17' ]
db: [ 'mysql:5.7', 'mysql:8.0', 'mariadb:10.3', 'mariadb:10.4', 'mariadb:10.5', 'mariadb:10.6' ]
db: [ 'mysql:5.7', 'mysql:8.0', 'mariadb:10.3', 'mariadb:10.4.30', 'mariadb:10.5.21', 'mariadb:10.6.14' ]
runs-on: ${{ matrix.os }}
services:
mysql:
Expand Down
7 changes: 6 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ volumes:
services:

db:
image: mariadb:10.4
# Pinning MariaDB to point release 10.4.30 works around the issues with the
# database migrations seen with 10.4.31 in issue #1212.
#
# TODO: Get database migrations to work with the latest point releases of
# MariaDB 10.4.
image: mariadb:10.4.30
ports:
- 3306:3306
environment:
Expand Down

0 comments on commit 3fd9ff6

Please sign in to comment.