Skip to content

Commit

Permalink
fix upgrade docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ntarocco committed Dec 3, 2024
1 parent 109807b commit 3d097fc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/releases/v11/upgrade-v11.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 9 additions & 1 deletion docs/releases/v12/upgrade-v12.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,18 @@ 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

```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
```

Expand Down Expand Up @@ -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:
Expand Down
6 changes: 5 additions & 1 deletion docs/releases/v13/upgrade-v13.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,14 +120,18 @@ 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
```

```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
```

Expand Down

0 comments on commit 3d097fc

Please sign in to comment.