summaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-03-11 12:29:52 +0100
committerJoas Schilling <coding@schilljs.com>2020-03-31 10:51:15 +0200
commit720dc4e93d83d738861c614745f514cc347ef1f9 (patch)
tree841e5f1c095df5c24f82f134afac9ddad721a044 /apps/settings/lib
parent0faed106d7b0b4868ebcd897469d106d76081800 (diff)
downloadnextcloud-server-720dc4e93d83d738861c614745f514cc347ef1f9.tar.gz
nextcloud-server-720dc4e93d83d738861c614745f514cc347ef1f9.zip
Add optional column oc_comments.reference_id
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/Controller/CheckSetupController.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php
index 04711cf5308..6f3bb539eff 100644
--- a/apps/settings/lib/Controller/CheckSetupController.php
+++ b/apps/settings/lib/Controller/CheckSetupController.php
@@ -46,6 +46,7 @@ use GuzzleHttp\Exception\ClientException;
use OC;
use OC\AppFramework\Http;
use OC\DB\Connection;
+use OC\DB\MissingColumnInformation;
use OC\DB\MissingIndexInformation;
use OC\DB\SchemaWrapper;
use OC\IntegrityCheck\Checker;
@@ -445,6 +446,15 @@ Raw output
return $indexInfo->getListOfMissingIndexes();
}
+ protected function hasMissingColumns(): array {
+ $indexInfo = new MissingColumnInformation();
+ // Dispatch event so apps can also hint for pending index updates if needed
+ $event = new GenericEvent($indexInfo);
+ $this->dispatcher->dispatch(IDBConnection::CHECK_MISSING_COLUMNS_EVENT, $event);
+
+ return $indexInfo->getListOfMissingColumns();
+ }
+
protected function isSqliteUsed() {
return strpos($this->config->getSystemValue('dbtype'), 'sqlite') !== false;
}
@@ -693,6 +703,7 @@ Raw output
'isSettimelimitAvailable' => $this->isSettimelimitAvailable(),
'hasFreeTypeSupport' => $this->hasFreeTypeSupport(),
'missingIndexes' => $this->hasMissingIndexes(),
+ 'missingColumns' => $this->hasMissingColumns(),
'isSqliteUsed' => $this->isSqliteUsed(),
'databaseConversionDocumentation' => $this->urlGenerator->linkToDocs('admin-db-conversion'),
'isPHPMailerUsed' => $this->isPHPMailerUsed(),