Skip to content
Snippets Groups Projects
Commit 7d53b6f1 authored by Robin Appelman's avatar Robin Appelman
Browse files

remove temporary files after updating

parent 6e0ea7aa
No related branches found
No related tags found
No related merge requests found
......@@ -371,6 +371,10 @@ class OC_DB {
}
file_put_contents( $file2, $content );
$op = self::$schema->updateDatabase($file2, $previousSchema, array(), false);
// Delete our temporary file
unlink( $file2 );
if (PEAR::isError($op)) {
$error = $op->getMessage();
OC_Log::write('core','Failed to update database structure ('.$error.')',OC_Log::FATAL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment