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 /gnu/tests | |
parent | 927bf98e0e35cbd6d3c8416742f695def8faf90b (diff) |
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 'gnu/tests')
-rw-r--r-- | gnu/tests/databases.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/tests/databases.scm b/gnu/tests/databases.scm index 1d7f53ec3e..dd1af1dbcc 100644 --- a/gnu/tests/databases.scm +++ b/gnu/tests/databases.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Christopher Baines <mail@cbaines.net> +;;; Copyright © 2020 Marius Bakke <marius@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -311,6 +312,9 @@ ((pid) (number? pid)))))) marionette)) + (test-assert "mysql_upgrade completed" + (wait-for-file "/var/lib/mysql/mysql_upgrade_info" marionette)) + (test-end) (exit (= (test-runner-fail-count (test-runner-current)) 0))))) |