Unverified Commit e1699e84 authored by Vincent Petry's avatar Vincent Petry
Browse files

Check if migrations dir could be created

parent 32032326
......@@ -47,7 +47,9 @@ class MigrationService {
}
if (!is_dir($migrationsPath)) {
mkdir($migrationsPath);
if (!mkdir($migrationsPath)) {
throw new \Exception("Could not create migration folder \"$migrationsPath\"");
};
}
$prefix = $connection->getPrefix();
$mc = new MigrationConfiguration($connection);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment