From 3d097fcb2dedcdc86ff17d79b0ccb4b874ccc42c Mon Sep 17 00:00:00 2001 From: Nicola Date: Tue, 3 Dec 2024 16:49:45 +0100 Subject: [PATCH] fix upgrade docs --- docs/releases/v11/upgrade-v11.0.md | 2 +- docs/releases/v12/upgrade-v12.0.md | 10 +++++++++- docs/releases/v13/upgrade-v13.0.md | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/docs/releases/v11/upgrade-v11.0.md b/docs/releases/v11/upgrade-v11.0.md index 49c7dd4a..eeecdc6a 100644 --- a/docs/releases/v11/upgrade-v11.0.md +++ b/docs/releases/v11/upgrade-v11.0.md @@ -112,7 +112,7 @@ invenio alembic upgrade Execute the data migration, note that there is no need to re-index the data: ```bash -pipenv run invenio shell $(find $(pipenv --venv)/lib/*/site-packages/invenio_app_rdm -name migrate_10_0_to_11_0.py) +invenio shell $(find $(pipenv --venv)/lib/*/site-packages/invenio_app_rdm -name migrate_10_0_to_11_0.py) ``` The parsing of the ROR dump used for the Funders vocabulary has diff --git a/docs/releases/v12/upgrade-v12.0.md b/docs/releases/v12/upgrade-v12.0.md index 92bd393e..6268b500 100644 --- a/docs/releases/v12/upgrade-v12.0.md +++ b/docs/releases/v12/upgrade-v12.0.md @@ -126,7 +126,7 @@ invenio queues declare Execute the data migration: ```bash -pipenv run invenio shell $(find $(pipenv --venv)/lib/*/site-packages/invenio_app_rdm -name migrate_11_0_to_12_0.py) +invenio shell $(find $(pipenv --venv)/lib/*/site-packages/invenio_app_rdm -name migrate_11_0_to_12_0.py) ``` ### Rebuild search indices @@ -134,6 +134,10 @@ pipenv run invenio shell $(find $(pipenv --venv)/lib/*/site-packages/invenio_app ```bash invenio index destroy --yes-i-know invenio index init +# if you have records custom fields +invenio rdm-records custom-fields init +# if you have communities custom fields +invenio communities custom-fields init invenio rdm rebuild-all-indices ``` @@ -199,6 +203,10 @@ THEME_SITENAME = "Project name for header and UI" ```bash invenio index destroy --yes-i-know invenio index init + # if you have records custom fields + invenio rdm-records custom-fields init + # if you have communities custom fields + invenio communities custom-fields init invenio rdm rebuild-all-indices ``` SOLUTION 2: diff --git a/docs/releases/v13/upgrade-v13.0.md b/docs/releases/v13/upgrade-v13.0.md index b8860499..1cf81b27 100644 --- a/docs/releases/v13/upgrade-v13.0.md +++ b/docs/releases/v13/upgrade-v13.0.md @@ -120,7 +120,7 @@ Execute the data migration: ### Rebuild search indices -TODO if not destroying and rebuiliding for names we need to update the mappings: +TODO if not destroying and rebuiliding for names we need to update the mappings: ```bash invenio index update names-name-v2.0.0 --no-check ``` @@ -128,6 +128,10 @@ invenio index update names-name-v2.0.0 --no-check ```bash invenio index destroy --yes-i-know invenio index init +# if you have records custom fields +invenio rdm-records custom-fields init +# if you have communities custom fields +invenio communities custom-fields init invenio rdm rebuild-all-indices ```