---
title: Add missing indices in Nextcloud database
updated: 2022-11-08 08:24:10Z
created: 2020-06-04 20:22:20Z
tags:
  - inky
  - IT/Nextcloud
---

Running as root:

`sudo -u www-data /usr/bin/php /data/nextcloud-15.0.4/occ db:add-missing-indices`
`sudo -u www-data /usr/bin/php /data/nextcloud-15.0.4/occ integrity:check-core`
`sudo -u www-data /usr/bin/php /data/nextcloud-15.0.4/occ maintenance:mode --off`

`occ db:convert-filecache-bigint`
