remove temporary files after updating
This commit is contained in:
parent
6e0ea7aaae
commit
7d53b6f106
|
@ -371,6 +371,10 @@ class OC_DB {
|
||||||
}
|
}
|
||||||
file_put_contents( $file2, $content );
|
file_put_contents( $file2, $content );
|
||||||
$op = self::$schema->updateDatabase($file2, $previousSchema, array(), false);
|
$op = self::$schema->updateDatabase($file2, $previousSchema, array(), false);
|
||||||
|
|
||||||
|
// Delete our temporary file
|
||||||
|
unlink( $file2 );
|
||||||
|
|
||||||
if (PEAR::isError($op)) {
|
if (PEAR::isError($op)) {
|
||||||
$error = $op->getMessage();
|
$error = $op->getMessage();
|
||||||
OC_Log::write('core','Failed to update database structure ('.$error.')',OC_Log::FATAL);
|
OC_Log::write('core','Failed to update database structure ('.$error.')',OC_Log::FATAL);
|
||||||
|
|
Loading…
Reference in New Issue