ENHANCEMENT If the database type to install with doesn't allow creation of databases, allow for this case and inform the user they need to create it manually

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@99001 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
sharvey 2010-02-15 05:36:27 +00:00 committed by Sam Minnee
parent ba357293b8
commit 6bd62df00a

View File

@ -647,7 +647,12 @@ class InstallRequirements {
$this->testing($testDetails);
return true;
} else {
$testDetails[2] .= " (user '$databaseConfig[username]' doesn't have CREATE DATABASE permissions.)";
if(!@$result['cannotCreate']) {
$testDetails[2] .= ". Please create the database manually.";
} else {
$testDetails[2] .= " (user '$databaseConfig[username]' doesn't have CREATE DATABASE permissions.)";
}
$this->error($testDetails);
return false;
}