diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-07-25 16:57:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-25 16:57:13 +0200 |
commit | 68c4fc25069b580062752a6f55e47d91be57efae (patch) | |
tree | 0f18f14cfbc555e3e6d4ae38188ce40024a78b12 /lib/private/Setup/MySQL.php | |
parent | 8d751ff2b429380af7e5c870844a6a32f82f0741 (diff) | |
parent | d254797f561b0f7a2f3feeaa8bb868ad2d3c74be (diff) | |
download | nextcloud-server-68c4fc25069b580062752a6f55e47d91be57efae.tar.gz nextcloud-server-68c4fc25069b580062752a6f55e47d91be57efae.zip |
Merge pull request #5772 from nextcloud/migrations-install
Install nextcloud via migrations instead of the db_structure.xml
Diffstat (limited to 'lib/private/Setup/MySQL.php')
-rw-r--r-- | lib/private/Setup/MySQL.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php index b4ca02d2e84..d03e4858b61 100644 --- a/lib/private/Setup/MySQL.php +++ b/lib/private/Setup/MySQL.php @@ -51,11 +51,7 @@ class MySQL extends AbstractDatabase { //fill the database if needed $query='select count(*) from information_schema.tables where table_schema=? AND table_name = ?'; - $result = $connection->executeQuery($query, [$this->dbName, $this->tablePrefix.'users']); - $row = $result->fetch(); - if (!$row or $row['count(*)'] === '0') { - \OC_DB::createDbFromStructure($this->dbDefinitionFile); - } + $connection->executeQuery($query, [$this->dbName, $this->tablePrefix.'users']); } /** |