Skip to content

Commit fcb020d

Browse files
authored
Migration location to trash (#2904)
* importing_data.md: Add location trash * importing_data.md: Add location trash example
1 parent cd0a774 commit fcb020d

File tree

2 files changed

+46
-28
lines changed

2 files changed

+46
-28
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-
2+
type: location
3+
mode: trash
4+
match:
5+
field: location_remote_id
6+
value: f3e90596361e31d496d4026eb624c983
7+
-
8+
type: location
9+
mode: trash
10+
match:
11+
field: location_id
12+
value: 5

docs/content_management/data_migration/importing_data.md

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,34 +45,34 @@ Then, the step is described by additional properties depending on its type and m
4545
4646
The following data migration step modes are available:
4747
48-
| `type` | `create` | `update` | `delete` | `swap` |
49-
|------------------------|:--------:|:--------:|:--------:|:--------:|
50-
| `action_configuration` | ✔ | ✔ | ✔ | |
51-
| `attribute` | ✔ | ✔ | ✔ | |
52-
| `attribute_group` | ✔ | ✔ | ✔ | |
53-
| `content_type` | ✔ | ✔ | ✔ | |
54-
| `content_type_group` | ✔ | ✔ | ✔ | |
55-
| `content` | ✔ | ✔ | ✔ | |
56-
| `currency` | ✔ | ✔ | ✔ | |
57-
| `customer_group` | ✔ | ✔ | ✔ | |
58-
| `discount` | ✔ | ✔ | | |
59-
| `discount_code` | ✔ | | | |
60-
| `language` | ✔ | | | |
61-
| `location` | | ✔ | | ✔ |
62-
| `object_state` | ✔ | | | |
63-
| `object_state_group` | ✔ | | | |
64-
| `payment_method` | ✔ | | | |
65-
| `product_asset` | ✔ | | | |
66-
| `product_availability` | ✔ | | | |
67-
| `product_price` | ✔ | | | |
68-
| `product_variant` | ✔ | | | |
69-
| `role` | ✔ | ✔ | ✔ | |
70-
| `section` | ✔ | ✔ | | |
71-
| `segment` | ✔ | ✔ | ✔ | |
72-
| `segment_group` | ✔ | ✔ | ✔ | |
73-
| `setting` | ✔ | ✔ | ✔ | |
74-
| `user` | ✔ | ✔ | | |
75-
| `user_group` | ✔ | ✔ | ✔ | |
48+
| `type` | `create` | `update` | `delete` | `swap` | `trash` |
49+
|------------------------|:--------:|:--------:|:--------:|:--------:|:--------:|
50+
| `action_configuration` | ✔ | ✔ | ✔ | | |
51+
| `attribute` | ✔ | ✔ | ✔ | | |
52+
| `attribute_group` | ✔ | ✔ | ✔ | | |
53+
| `content_type` | ✔ | ✔ | ✔ | | |
54+
| `content_type_group` | ✔ | ✔ | ✔ | | |
55+
| `content` | ✔ | ✔ | ✔ | | |
56+
| `currency` | ✔ | ✔ | ✔ | | |
57+
| `customer_group` | ✔ | ✔ | ✔ | | |
58+
| `discount` | ✔ | ✔ | | | |
59+
| `discount_code` | ✔ | | | | |
60+
| `language` | ✔ | | | | |
61+
| `location` | | ✔ | | ✔ | ✔ |
62+
| `object_state` | ✔ | | | | |
63+
| `object_state_group` | ✔ | | | | |
64+
| `payment_method` | ✔ | | | | |
65+
| `product_asset` | ✔ | | | | |
66+
| `product_availability` | ✔ | | | | |
67+
| `product_price` | ✔ | | | | |
68+
| `product_variant` | ✔ | | | | |
69+
| `role` | ✔ | ✔ | ✔ | | |
70+
| `section` | ✔ | ✔ | | | |
71+
| `segment` | ✔ | ✔ | ✔ | | |
72+
| `segment_group` | ✔ | ✔ | ✔ | | |
73+
| `setting` | ✔ | ✔ | ✔ | | |
74+
| `user` | ✔ | ✔ | | | |
75+
| `user_group` | ✔ | ✔ | ✔ | | |
7676

7777
### Repeatable steps
7878

@@ -313,6 +313,12 @@ The following example shows how to swap content items assigned to given location
313313

314314
The metadata keys for Location are optional.
315315

316+
The following example shows how to trash locations.
317+
318+
``` yaml
319+
[[= include_file('code_samples/data_migration/examples/trash_location.yaml') =]]
320+
```
321+
316322
### Users
317323

318324
The following example shows how to create a user.

0 commit comments

Comments
 (0)