From 782245763c348579beebf403bc2d0bd301daf1fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 28 Mar 2024 14:21:34 +0100 Subject: [PATCH 1/2] Added mention about default values for migrations --- .../data_migration/examples/create_product_type.yaml | 1 + docs/content_management/data_migration/importing_data.md | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/code_samples/data_migration/examples/create_product_type.yaml b/code_samples/data_migration/examples/create_product_type.yaml index 4e9005fa04..950e99cdb5 100644 --- a/code_samples/data_migration/examples/create_product_type.yaml +++ b/code_samples/data_migration/examples/create_product_type.yaml @@ -18,6 +18,7 @@ - identifier: specification type: ibexa_product_specification required: true + translatable: false translations: eng-GB: name: Specification diff --git a/docs/content_management/data_migration/importing_data.md b/docs/content_management/data_migration/importing_data.md index ccf17809a7..14727afa6d 100644 --- a/docs/content_management/data_migration/importing_data.md +++ b/docs/content_management/data_migration/importing_data.md @@ -213,6 +213,11 @@ The following example shows how to create a content type with two Field definiti The required metadata keys are: `identifier`, `mainTranslation`, `contentTypeGroups` and `translations`. +The default values of Field definition properties mirror the underlying PHP API, for example: + +* `translatable` defaults to `true` +* `required` defaults to `false` + ``` yaml [[= include_file('code_samples/data_migration/examples/create_blog_post_ct.yaml') =]] ``` From da9fb5d09d13cb854484e73f732631c3fe18be11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 3 Apr 2024 12:24:14 +0200 Subject: [PATCH 2/2] Applied review suggestion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tomasz DÄ…browski <64841871+dabrt@users.noreply.github.com> --- docs/content_management/data_migration/importing_data.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/content_management/data_migration/importing_data.md b/docs/content_management/data_migration/importing_data.md index 14727afa6d..b6900707ee 100644 --- a/docs/content_management/data_migration/importing_data.md +++ b/docs/content_management/data_migration/importing_data.md @@ -215,8 +215,8 @@ The required metadata keys are: `identifier`, `mainTranslation`, `contentTypeGro The default values of Field definition properties mirror the underlying PHP API, for example: -* `translatable` defaults to `true` -* `required` defaults to `false` +- `translatable` defaults to `true` +- `required` defaults to `false` ``` yaml [[= include_file('code_samples/data_migration/examples/create_blog_post_ct.yaml') =]]