Skip to content

Commit 166b3fe

Browse files
committed
Added documentation for Location swap migration (#2440)
1 parent 55b3b22 commit 166b3fe

File tree

2 files changed

+43
-25
lines changed

2 files changed

+43
-25
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
-
2+
type: location
3+
mode: swap
4+
match1:
5+
field: location_remote_id
6+
value: f3e90596361e31d496d4026eb624c983
7+
match2:
8+
field: location_id
9+
value: 5

docs/content_management/data_migration/importing_data.md

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

7878
### Repeatable steps
7979

@@ -308,6 +308,15 @@ The following example shows how to delete the `Contributor` Role:
308308
[[= include_file('code_samples/data_migration/examples/delete_role.yaml') =]]
309309
```
310310

311+
### Locations
312+
313+
The following example shows how to swap content items assigned to given locations.
314+
315+
``` yaml
316+
[[= include_file('code_samples/data_migration/examples/swap_location.yaml') =]]
317+
```
318+
319+
311320
### Users
312321

313322
The following example shows how to create a user.

0 commit comments

Comments
 (0)