mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 21:49:34 +03:00
nixos/mysql: fix support for non-specified database schema
and increase test coverage to catch this
This commit is contained in:
parent
4d4b67b65e
commit
77978c1518
2 changed files with 8 additions and 4 deletions
|
@ -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}" ]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue