From cb7e24da2a146b832c30c636f8ab8df4f635195b Mon Sep 17 00:00:00 2001 From: Jim LAURIE Date: Thu, 2 Jan 2020 12:06:58 +0100 Subject: [PATCH] Fix compo file path Update the path of component file for the database collection update. fix #4866 --- .../migration-guide-beta.17-to-beta.18.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.md b/docs/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.md index efdfd29fc2..85484fb607 100644 --- a/docs/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.md +++ b/docs/3.0.0-beta.x/migration-guide/migration-guide-beta.17-to-beta.18.md @@ -496,7 +496,7 @@ RENAME TABLE groups_old_table_name TO components_new_table_name; **2. Change the `collectionName` of the component** **Before** -`./api/components/category/component.json` +`./components/component.json` ```json { @@ -506,7 +506,7 @@ RENAME TABLE groups_old_table_name TO components_new_table_name; ``` **After** -`./api/components/category/component.json` +`./components/component.json` ```json { @@ -533,7 +533,6 @@ SET related_type = 'components_new_table_name' WHERE related_type = 'groups_old_table_name'; ``` - #### Mongo In `mongo` the relation between a content type and its components is held in an array of references. To know which component type it referes to, the array also contains a `kind` attribute containing the component Schema name. @@ -566,7 +565,7 @@ db.collection.renameCollection('groups_my_group', 'components_my_component'); **3. Change the `collectionName` of the component** **Before** -`./api/components/category/component.json` +`./components/component.json` ```json { @@ -576,7 +575,7 @@ db.collection.renameCollection('groups_my_group', 'components_my_component'); ``` **After** -`./api/components/category/component.json` +`./components/component.json` ```json {