Skip to content

Commit

Permalink
[Nextcloud] update database maintenance commands
Browse files Browse the repository at this point in the history
Nextcloud 19 is end of life since 19.0.13 (2021-07-01)
  • Loading branch information
EV21 authored and nichtmax committed Aug 9, 2021
1 parent a274f1e commit ceee362
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/guide_nextcloud.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Before you start the Nextcloud installation you should adapt some PHP settings:
#. enable the `PHP OPcache <https://www.php.net/manual/en/book.opcache.php>`_
#. 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.

Expand Down Expand Up @@ -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]$
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ceee362

Please sign in to comment.