summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/MigrationService.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-06-12 10:52:48 +0200
committerMorris Jobke <hey@morrisjobke.de>2017-07-05 13:02:16 +0200
commit0bff4f3f07a52e063abe5a50a9ef3ec3bb131e51 (patch)
tree0a3d3734642a1d76ebfd539328862cf63746f64d /lib/private/DB/MigrationService.php
parent4e5cd1efea7c522ebd763dd3b96eb5f8c0e8407b (diff)
downloadnextcloud-server-0bff4f3f07a52e063abe5a50a9ef3ec3bb131e51.tar.gz
nextcloud-server-0bff4f3f07a52e063abe5a50a9ef3ec3bb131e51.zip
Fix the installer tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/DB/MigrationService.php')
-rw-r--r--lib/private/DB/MigrationService.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/DB/MigrationService.php b/lib/private/DB/MigrationService.php
index 44412a967fb..70f81d9c808 100644
--- a/lib/private/DB/MigrationService.php
+++ b/lib/private/DB/MigrationService.php
@@ -78,9 +78,13 @@ class MigrationService {
$namespace = App::buildAppNamespace($appName);
$this->migrationsPath = "$appPath/lib/Migration";
$this->migrationsNamespace = $namespace . '\\Migration';
+
+ if (!@mkdir($appPath . '/lib') && !is_dir($appPath . '/lib')) {
+ throw new \RuntimeException("Could not create migration folder \"{$this->migrationsPath}\"");
+ }
}
- if (!is_dir($this->migrationsPath) && !mkdir($this->migrationsPath)) {
+ if (!@mkdir($this->migrationsPath) && !is_dir($this->migrationsPath)) {
throw new \RuntimeException("Could not create migration folder \"{$this->migrationsPath}\"");
}
}