Skip to content

Commit dc8cf71

Browse files
committed
update_to_5.0.md: DFS
1 parent 33e84cb commit dc8cf71

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/update_and_migration/from_4.6/update_to_5.0.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ TODO: Migration files? Content type updates? Seems not.
276276
Many tables are renamed. Some columns are also renamed.
277277
If you have custom code directly querying those, you will need to update them.
278278

279-
You can track the renaming in the `ibexa-4.6.latest-to-5.0.0.sql` files or below.
279+
You can track the renaming in the `ibexa-4.6.latest-to-5.0.0.sql` file or below.
280280

281281
??? note "Tables and columns renaming map"
282282

@@ -366,6 +366,19 @@ You can track the renaming in the `ibexa-4.6.latest-to-5.0.0.sql` files or below
366366

367367
TODO: Something about renamed indexes?
368368

369+
??? note "DFS (Distributed File System)"
370+
371+
If [DFS IO handler](clustering.md#dfs-io-handler) is used and, as recommended, its table is on its own database, you'll have to rename table and columns there.
372+
Here are the DFS renamming queries (extracted from `ibexa-4.6.latest-to-5.0.0.sql`):
373+
374+
```sql
375+
ALTER TABLE ezdfsfile RENAME TO ibexa_dfs_file;
376+
ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_name_trunk TO ibexa_dfs_file_name_trunk;
377+
ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_expired_name TO ibexa_dfs_file_expired_name;
378+
ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_name TO ibexa_dfs_file_name;
379+
ALTER TABLE ibexa_dfs_file RENAME INDEX ezdfsfile_mtime TO ibexa_dfs_file_mtime;
380+
```
381+
369382
TODO: Compatibility "views" layers? Even if there is this layer to save time, it is recommended to update your code to use the new tables.
370383

371384
### Generate GraphQL schema

0 commit comments

Comments
 (0)