Merge pull request #5202 from nextcloud/enh/noid/include-expensive

nextcloud-entrypoint: maintenance-repair: include-expensive
This commit is contained in:
Simon L. 2024-09-04 16:30:50 +02:00 committed by GitHub
commit 1321f875e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -436,12 +436,14 @@ DATADIR_PERMISSION_CONF
# Apply optimization
echo "Doing some optimizations..."
php /var/www/html/occ maintenance:repair
if [ "$NEXTCLOUD_SKIP_DATABASE_OPTIMIZATION" != yes ]; then
php /var/www/html/occ maintenance:repair --include-expensive
php /var/www/html/occ db:add-missing-indices
php /var/www/html/occ db:add-missing-columns
php /var/www/html/occ db:add-missing-primary-keys
yes | php /var/www/html/occ db:convert-filecache-bigint
else
php /var/www/html/occ maintenance:repair
fi
fi
fi