Skip to content

Commit 678b084

Browse files
mnocondabrt
andauthored
Added mention about default values for migrations (#2349)
* Added mention about default values for migrations * Applied review suggestion Co-authored-by: Tomasz Dąbrowski <[email protected]> --------- Co-authored-by: Tomasz Dąbrowski <[email protected]>
1 parent 394e21e commit 678b084

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

code_samples/data_migration/examples/create_product_type.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- identifier: specification
1919
type: ibexa_product_specification
2020
required: true
21+
translatable: false
2122
translations:
2223
eng-GB:
2324
name: Specification

docs/content_management/data_migration/importing_data.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,11 @@ The following example shows how to create a content type with two Field definiti
213213

214214
The required metadata keys are: `identifier`, `mainTranslation`, `contentTypeGroups` and `translations`.
215215

216+
The default values of Field definition properties mirror the underlying PHP API, for example:
217+
218+
- `translatable` defaults to `true`
219+
- `required` defaults to `false`
220+
216221
``` yaml
217222
[[= include_file('code_samples/data_migration/examples/create_blog_post_ct.yaml') =]]
218223
```

0 commit comments

Comments
 (0)