mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
only remove old sqlite database if it exists
This commit is contained in:
parent
15c1a8109b
commit
8eefd42a7d
1 changed files with 3 additions and 1 deletions
|
|
@ -131,7 +131,9 @@ class OC_SETUP {
|
|||
}
|
||||
else {
|
||||
//delete the old sqlite database first, might cause infinte loops otherwise
|
||||
unlink("$datadir/owncloud.db");
|
||||
if(file_exists("$datadir/owncloud.db")){
|
||||
unlink("$datadir/owncloud.db");
|
||||
}
|
||||
//in case of sqlite, we can always fill the database
|
||||
OC_DB::createDbFromStructure('db_structure.xml');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue