Fix Mysql and Postgresql bug

This commit is contained in:
Frédéric Guillot
2014-09-10 16:51:44 +02:00
parent 28ff8dad91
commit cede5d5434
8 changed files with 17 additions and 58 deletions

View File

@@ -152,7 +152,8 @@ $registry->db = function() use ($registry) {
return $db;
}
else {
die('Unable to migrate database schema!');
$errors = $db->getLogMessages();
die('Unable to migrate database schema: <br/><br/><strong>'.(isset($errors[0]) ? $errors[0] : 'Unknown error').'</strong>');
}
};