diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 15:07:59 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-03 15:07:59 +0200 |
commit | a5dd8e84f13c9815c0208851664238cfc0034b5b (patch) | |
tree | 6e3dbc33d462a7831aa7bf0da73821993e4dcd2a /settings | |
parent | 587159c73ed6028e1a9de9005a7e9473d016ea19 (diff) | |
parent | 25c676f203b7716b6ddd33b68a287939a1a7ef55 (diff) | |
download | nextcloud-server-a5dd8e84f13c9815c0208851664238cfc0034b5b.tar.gz nextcloud-server-a5dd8e84f13c9815c0208851664238cfc0034b5b.zip |
Merge pull request #8827 from owncloud/add-sqlite-info
add info about sqlite on setup page
Diffstat (limited to 'settings')
-rwxr-xr-x | settings/admin.php | 4 | ||||
-rw-r--r-- | settings/templates/admin.php | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/settings/admin.php b/settings/admin.php index a0769892ef4..fc76d3d74ab 100755 --- a/settings/admin.php +++ b/settings/admin.php @@ -88,6 +88,10 @@ $tmpl->assign('forms', array()); foreach($forms as $form) { $tmpl->append('forms', $form); } + +$databaseOverload = (strpos(\OCP\Config::getSystemValue('dbtype'), 'sqlite') !== false); +$tmpl->assign('databaseOverload', $databaseOverload); + $tmpl->printPage(); /** diff --git a/settings/templates/admin.php b/settings/templates/admin.php index cb57bc0ce72..c8ca031ec98 100644 --- a/settings/templates/admin.php +++ b/settings/templates/admin.php @@ -98,6 +98,20 @@ if (!$_['isAnnotationsWorking']) { <?php } +// SQLite database performance issue +if ($_['databaseOverload']) { + ?> +<div class="section"> + <h2><?php p($l->t('Database Performance Info'));?></h2> + + <p class="securitywarning"> + <?php p($l->t('SQLite is used as database. For larger installations we recommend to change this. To migrate to another database use the command line tool: \'occ db:convert-type\'')); ?> + </p> + +</div> +<?php +} + // if module fileinfo available? if (!$_['has_fileinfo']) { ?> |