Skip to content

Commit

Permalink
enable mariadb auto upgrade (nextcloud#1814)
Browse files Browse the repository at this point in the history
* enable mariadb auto upgrade

This fixes after-upgrade issues, for example:

    [ERROR] Incorrect definition of table mysql.event: expected column 'definer' at position 3 to have type varchar(, found type char(141).

The upgrade only happens when necessary.

I also disabled the system database backup because I assume users create
and test their own backups.

Signed-off-by: Adam Monsen <[email protected]>

* use 1s instead of "yesplease"

Any nonzero value is valid for these environment variables.

Signed-off-by: Adam Monsen <[email protected]>

Signed-off-by: Adam Monsen <[email protected]>
  • Loading branch information
meonkeys authored and ananace committed May 10, 2024
1 parent 1ee4879 commit f2bb70b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- db.env

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- db.env

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- db.env

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ services:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=
- MARIADB_AUTO_UPGRADE=1
- MARIADB_DISABLE_UPGRADE_BACKUP=1
env_file:
- db.env

Expand Down

0 comments on commit f2bb70b

Please sign in to comment.