From ceee3626da016949d5396726cea1dfcad4063c1c Mon Sep 17 00:00:00 2001 From: EV21 Date: Sun, 1 Aug 2021 21:39:31 +0200 Subject: [PATCH] [Nextcloud] update database maintenance commands Nextcloud 19 is end of life since 19.0.13 (2021-07-01) --- source/guide_nextcloud.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/guide_nextcloud.rst b/source/guide_nextcloud.rst index 4a3adc0d..e4ea4898 100644 --- a/source/guide_nextcloud.rst +++ b/source/guide_nextcloud.rst @@ -68,6 +68,7 @@ Before you start the Nextcloud installation you should adapt some PHP settings: #. enable the `PHP OPcache `_ #. increase the PHP memory limit #. disable PHP output buffering + #. restart PHP Otherwise Nextcloud would warn you after each command execution because of the wrong set memory limit. @@ -321,6 +322,8 @@ To adapt some database configs to make Nextcloud run smoother execute these comm [isabell@stardust ~]$ cd html [isabell@stardust html]$ php occ db:add-missing-indices --no-interaction + [isabell@stardust html]$ php occ db:add-missing-columns --no-interaction + [isabell@stardust html]$ php occ db:add-missing-primary-keys --no-interaction [isabell@stardust html]$ php occ db:convert-filecache-bigint --no-interaction [isabell@stardust html]$ @@ -367,9 +370,7 @@ Create `~/bin/nextcloud-update` with the following content: php ~/html/occ maintenance:mode --on ## database optimisations - ## The following command works from Nextcloud 20. - ## remove '#' so it is working - #php ~/html/occ db:add-missing-primary-keys --no-interaction + php ~/html/occ db:add-missing-primary-keys --no-interaction php ~/html/occ db:add-missing-columns --no-interaction php ~/html/occ db:add-missing-indices --no-interaction php ~/html/occ db:convert-filecache-bigint --no-interaction