diff options
author | Marius Bakke <marius@gnu.org> | 2020-11-28 17:42:22 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2020-11-28 19:51:40 +0100 |
commit | e20388ad7f94e72a7a71272a742031fb5c1fbb4b (patch) | |
tree | 83d1a8f5082ab9f51f80bf058c71f307bc395c11 /doc | |
parent | 927bf98e0e35cbd6d3c8416742f695def8faf90b (diff) | |
download | guix-e20388ad7f94e72a7a71272a742031fb5c1fbb4b.tar.gz |
services: MySQL: Upgrade database schemas automatically.
* gnu/services/databases.scm (<mysql-configuration>): Add AUTO-UPGRADE? field. (mysql-upgrade-wrapper, mysql-upgrade-shepherd-service, mysql-shepherd-services): New variables. (mysql-service-type): Use MYSQL-SHEPHERD-SERVICES instead of MYSQL-SHEPHERD-SERVICE. * doc/guix.texi (Database Services): Document the AUTO-UPGRADE? field of MYSQL-SERVICE-TYPE. * gnu/tests/databases.scm (run-mysql-test): Test that mysql_upgrade has run.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/guix.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/guix.texi b/doc/guix.texi index bef42e160a..2a98dda324 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -19151,6 +19151,12 @@ Socket file to use for local (non-network) connections. @item @code{extra-content} (default: @code{""}) Additional settings for the @file{my.cnf} configuration file. +@item @code{auto-upgrade?} (default: @code{#t}) +Whether to automatically run @command{mysql_upgrade} after starting the +service. This is necessary to upgrade the @dfn{system schema} after +``major'' updates (such as switching from MariaDB 10.4 to 10.5), but can +be disabled if you would rather do that manually. + @end table @end deftp |