Skip to content
Merged
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
28 changes: 27 additions & 1 deletion docs/update_and_migration/from_5.0/update_from_5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,33 @@

## v5.0.4

No additional steps needed.
### Database update [[% include 'snippets/experience_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]

From a platform first installed on v5.0.3 or updated precisely to v5.0.3, you need to execute the requests below.
If the platform comes from lower than v5.0.3 and is updated to higher than v5.0.3, you don't need this part
(but if you run the requests anyway, you only obtain error messages, nothing being broken or lost).

Check warning on line 159 in docs/update_and_migration/from_5.0/update_from_5.0.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/update_and_migration/from_5.0/update_from_5.0.md#L159

[Ibexa.OxfordComma] Use a comma before the last 'and' or 'or' in a list of four or more items.
Raw output
{"message": "[Ibexa.OxfordComma] Use a comma before the last 'and' or 'or' in a list of four or more items.", "location": {"path": "docs/update_and_migration/from_5.0/update_from_5.0.md", "range": {"start": {"line": 159, "column": 2}}}, "severity": "WARNING"}

=== "MySQL"

``` sql
ALTER TABLE `ibexa_site_public_access` ADD COLUMN `tree_root_location_id` INT DEFAULT NULL;
ALTER TABLE `ibexa_site_public_access` ADD INDEX `ibexa_spa_trl_id` (`tree_root_location_id`);

UPDATE ibexa_site_public_access
SET tree_root_location_id = CAST(JSON_UNQUOTE(JSON_EXTRACT(config, '$."ibexa.site_access.config.content.tree_root.location_id"')) AS SIGNED)
WHERE tree_root_location_id IS NULL AND JSON_EXTRACT(config, '$."ibexa.site_access.config.content.tree_root.location_id"') IS NOT NULL;
```

=== "PostgreSQL"

``` sql
ALTER TABLE ibexa_site_public_access ADD COLUMN tree_root_location_id INT DEFAULT NULL;
CREATE INDEX "ibexa_spa_trl_id" ON "ibexa_site_public_access" ("tree_root_location_id");

UPDATE ibexa_site_public_access
SET tree_root_location_id = (config::jsonb ->> 'ibexa.site_access.config.content.tree_root.location_id')::integer
WHERE tree_root_location_id IS NULL AND config::jsonb ? 'ibexa.site_access.config.content.tree_root.location_id';
```

## LTS Updates and additional packages

Expand Down