diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-23 15:52:28 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-23 15:52:28 +0200 |
commit | a5f0cc653963210228b1992568286f6e4330aff3 (patch) | |
tree | 68e0f27dca76f60a9a234bd01713a7035476dbdc /lib/private | |
parent | cce9f25d864e2c3f55c738396da54f0e5c9edf85 (diff) | |
download | nextcloud-server-a5f0cc653963210228b1992568286f6e4330aff3.tar.gz nextcloud-server-a5f0cc653963210228b1992568286f6e4330aff3.zip |
--database-name or --database-table-prefix are ignored for sqlite
The default implementation of initialize in AbstractDatabase writes
database information to config.php. The method is overwritten in
Sqlite but parent is never called. Database-Name and Database-Table-Prefix
are never written to config.php. But from this point setup use values
from config.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Setup/Sqlite.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/Setup/Sqlite.php b/lib/private/Setup/Sqlite.php index d95e70c8b0c..406c1e6fc9a 100644 --- a/lib/private/Setup/Sqlite.php +++ b/lib/private/Setup/Sqlite.php @@ -20,6 +20,7 @@ * along with this program. If not, see <http://www.gnu.org/licenses/> * */ + namespace OC\Setup; class Sqlite extends AbstractDatabase { @@ -29,14 +30,11 @@ class Sqlite extends AbstractDatabase { return array(); } - public function initialize($config) { - } - public function setupDatabase($username) { $datadir = $this->config->getValue('datadirectory', \OC::$SERVERROOT . '/data'); //delete the old sqlite database first, might cause infinte loops otherwise - if(file_exists("$datadir/owncloud.db")) { + if (file_exists("$datadir/owncloud.db")) { unlink("$datadir/owncloud.db"); } //in case of sqlite, we can always fill the database |