mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 23:24:03 +00:00
[DOC] Updated 'Migration guide from beta.17.4 through beta.17.8 to beta.18'. Bugfix, and info about upload_file_morph.
#### Description of what you did: #### My PR is a: - [ ] 💥 Breaking change - [x] 🐛 Bug fix - [x] 💅 Enhancement - [ ] 🚀 New feature #### Main update on the: - [ ] Admin - [x] Documentation - [ ] Framework - [ ] Plugin #### Manual testing done on the following databases: - [x] Not applicable - [ ] MongoDB - [ ] MySQL - [ ] Postgres - [ ] SQLite
This commit is contained in:
parent
d6a00ccffd
commit
8b186452e3
@ -380,10 +380,19 @@ _Repeat this query for every join table where you are using this component._
|
||||
|
||||
```sql
|
||||
UPDATE restaurant_components
|
||||
SET component_type = 'groups_old_table_name'
|
||||
WHERE component_type = 'components_new_table_name';
|
||||
SET component_type = 'components_new_table_name'
|
||||
WHERE component_type = 'groups_old_table_name';
|
||||
```
|
||||
|
||||
**4. If you store files in groups, update the `related_type` values**
|
||||
|
||||
```sql
|
||||
UPDATE upload_file_morph
|
||||
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.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user