Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cleanup phpcr database #791

Merged
merged 2 commits into from
Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cookbook/cleanup-phpcr-database.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Cleanup PHPCR database
======================

If you have an older installation of Sulu, you may be dealing with a database cluttered with outdated PHPCR properties.
This is particularly common if you’ve made significant changes to your templates or content types over time.
To tidy up your database, try running the following command:

.. code-block:: bash

php bin/console sulu:document:phpcr-cleanup

The command is quite powerful, but exercise caution when deploying it in a production environment.
It will remove all properties not currently utilized in your templates. To avoid potential pitfalls, ensure you have a
backup of your database in place before executing this command.
1 change: 1 addition & 0 deletions cookbook/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ our recipes.
user-context-caching
build-admin-frontend
multi-server-setup
cleanup-phpcr-database

It is possible to work through the recipes, although most of the people will
pick the ones, which are most similar to their own tasks. We're open to
Expand Down
Loading