Update SQL dumps and improve schema migration process

This commit is contained in:
Frederic Guillot
2016-03-27 16:21:15 -04:00
parent f11fccd0d7
commit 004fde30f7
7 changed files with 84 additions and 63 deletions

View File

@@ -44,8 +44,8 @@ class DatabaseProvider implements ServiceProviderInterface
if ($db->schema()->check(\Schema\VERSION)) {
return $db;
} else {
$errors = $db->getLogMessages();
throw new RuntimeException('Unable to migrate database schema: '.(isset($errors[0]) ? $errors[0] : 'Unknown error'));
$messages = $db->getLogMessages();
throw new RuntimeException('Unable to run SQL migrations: '.implode(', ', $messages).' (You may have to fix it manually)');
}
}