nixos/mysql: fix support for non-specified database schema

and increase test coverage to catch this
This commit is contained in:
Florian Jacob 2019-04-01 20:01:29 +02:00
parent 4d4b67b65e
commit 77978c1518
2 changed files with 8 additions and 4 deletions

View file

@ -360,7 +360,7 @@ in
echo "Creating initial database: ${database.name}"
( echo 'create database `${database.name}`;'
${optionalString (database ? "schema") ''
${optionalString (database.schema != null) ''
echo 'use `${database.name}`;'
if [ -f "${database.schema}" ]