You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 13/umbraco-deploy/deployment-workflow/import-export-v7.md
+15-12Lines changed: 15 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,17 @@
1
1
---
2
2
meta.Title: Migrating from Umbraco 7
3
-
description: How to export content and schema from Umbraco 7 and import into a newer version
3
+
description: How to export content and schema from Umbraco 7 and import them into a newer version
4
4
---
5
5
6
-
###Migrating from Umbraco 7
6
+
# Migrating from Umbraco 7
7
7
8
-
The import and export features are available for Umbraco Deploy supporting Umbraco 8 and above. It's not been ported back to Umbraco 7, hence you cannot trigger an export from there in the same way.
8
+
The import and export features are available for Umbraco Deploy supporting Umbraco 8 and above. It's not been ported back to Umbraco 7, hence you cannot trigger an export from the backoffice or use the service.
9
9
10
-
We can use this feature to help migrate from Umbraco 7 to a supported major version. However, it requires additional logic to be added to the Deploy Contrib project.
10
+
However, you can still use this feature to help migrate from Umbraco 7 to a supported major version. This requires adding additional logic to your Umbraco 7 project to create an export ZIP archive similar to newer versions.
11
11
12
-
####Exporting Umbraco 7 content and schema
12
+
## Exporting Umbraco 7 content and schema
13
13
14
-
We can generate an export archive in the same format as used by the import/export feature. This is done by adding the [`Umbraco.Deploy.Contrib.Export` assembly](https://github.com/umbraco/Umbraco.Deploy.Contrib/releases/tag/release-2.0.0-export) to your Umbraco 7 project. This archive can then be imported into a newer Umbraco version by configuring the legacy import migrators. You can also apply additional migrators to update obsolete data types and property data into newer equivalents.
14
+
You can generate an export archive in the same format as the import/export feature. This is done by adding the [`Umbraco.Deploy.Contrib.Export` assembly](https://github.com/umbraco/Umbraco.Deploy.Contrib/releases/tag/release-2.0.0-export) to your Umbraco 7 project (that already has Deploy and Deploy Contrib installed, see below). This archive can be imported into a newer Umbraco version by configuring the legacy import migrators. You can also apply additional migrators to update obsolete data types and property data into newer equivalents.
15
15
16
16
This is possible via code, by temporarily applying a composer to an Umbraco 7 project to generate the export archive on start-up:
17
17
@@ -88,7 +88,7 @@ public class DeployExportApplicationHandler : ApplicationEventHandler
88
88
89
89
</details>
90
90
91
-
####Importing Umbraco 7 content and schema
91
+
## Importing Umbraco 7 content and schema
92
92
93
93
To import this archive into a newer Umbraco project, you need to install either of these packages:
94
94
@@ -150,6 +150,9 @@ internal class LegacyImportComposer : IComposer
150
150
builder.DeployArtifactMigrators()
151
151
.AddLegacyMigrators()
152
152
.Append<ElementTypeArtifactMigrator>();
153
+
154
+
builder.DeployPropertyTypeMigrators()
155
+
.AddLegacyMigrators(); // Available from Deploy Contrib 13.3.0 and 14.2.0+
@@ -167,23 +170,23 @@ internal class LegacyImportComposer : IComposer
167
170
It is recommended to start by importing only the schema and schema files (by deselecting 'Content' and 'Content files' in the dialog). Then, you can proceed with importing all content and schema together. The order in which the artifacts are imported depends on their dependencies. By importing the schema first, we ensure that the schema is updated before any content is processed.
168
171
{% endhint %}
169
172
170
-
####Obtaining Umbraco Deploy for Umbraco 7
173
+
## Obtaining Umbraco Deploy for Umbraco 7
171
174
172
175
Umbraco Deploy for Umbraco 7 is no longer supported and was only available on Umbraco Cloud. It was not released for use on-premise.
173
176
174
177
As such if you are looking to migrate from an Umbraco Cloud project running on Umbraco 7, you already have Umbraco Deploy installed.
175
178
176
-
If you have an Umbraco 7 on-premise website, you can use this guide to migrate from on-premise to Umbraco Cloud. Or to upgrade to a newer Deploy on-premise version. You will need to obtain and install Umbraco Deploy for Umbraco 7 into your project, solely to use the export feature.
179
+
If you have an Umbraco 7 on-premises website, you can use this guide to migrate from on-premises to Umbraco Cloud. Or to upgrade to a newer Deploy On-premises version. You need to obtain and install Umbraco Deploy for Umbraco 7 into your project, solely to use the export feature.
177
180
178
181
The export feature can be used without a license.
179
182
180
183
{% hint style="info" %}
181
184
182
-
A license is required for the Umbraco project you are importing into. This can be a license that comes as part of an Umbraco Cloud subscription, or an on-premise one.
185
+
A license is required for the Umbraco project you are importing into. This can be a license that comes as part of an Umbraco Cloud subscription, or a Deploy On-premises one.
183
186
184
187
{% endhint %}
185
188
186
-
Use this guide to migrate from on-premise to Umbraco Cloud or to upgrade to a newer Deploy version on-premise.
189
+
Use this guide to migrate from on-premises to Umbraco Cloud or to upgrade to a newer Deploy On-premises version.
187
190
188
191
1. Download the required `dll` files for Umbraco Deploy for Umbraco 7 from the following links:
189
192
@@ -226,4 +229,4 @@ Use this guide to migrate from on-premise to Umbraco Cloud or to upgrade to a ne
226
229
227
230
4. Export Content.
228
231
229
-
-**Export** your content, schema, and files to zip.
232
+
-**Export** your content, schema, and files to zip.
Copy file name to clipboardExpand all lines: 13/umbraco-deploy/deployment-workflow/import-with-migrations.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,34 @@ internal class ArtifactMigratorsComposer : IComposer
87
87
}
88
88
```
89
89
90
+
### Import and migration flow
91
+
92
+
When an import is started, the following happens:
93
+
1. Artifact signatures are read from the import provider (using `IArtifactImportProvider.GetArtifactSignatures()`).
94
+
2. The artifact signatures are sorted based on dependencies with `Ordering` enabled (ensuring dependent items are processed in the correct order, like parent items before children and data types before document types).
95
+
3. For each artifact signature:
96
+
1. Check whether the entity type is allowed to be imported.
97
+
2. Publish an `ArtifactImportingNotification` (cancelling will skip importing the artifact).
98
+
4. Publish a `ValidateArtifactImportNotification`:
99
+
- Deploy adds a default handler (`ValidateArtifactImportDependenciesNotificationHandler`) to validate whether all dependencies are either in the import or already present in the current environment. It emits warnings for missing content artifacts, missing or different artifact checksums and errors for missing schema artifacts.
100
+
- The import fails on validation errors or 'soft' fails on warnings if the `WarningsAsErrors` import option is set.
101
+
5. Create a Deploy scope and context (containing the 'owner' user for auditing purposes and cultures to import, in case the user doesn't have edit permissions for all languages).
102
+
6. For each artifact signature:
103
+
1. Create a (readonly) `Stream` for the artifact (using `IArtifactImportProvider.CreateArtifactReadStream(Udi)`).
104
+
2. Deserialize the artifact into a generic JSON object (`JToken`).
105
+
3. Parse the `__version` and `__type` properties and resolve the artifact type (using `IArtifactTypeResolver`).
106
+
4. Migrate the JSON object (using `IArtifactJsonMigrator`).
107
+
5. Deserialize the JSON object into the artifact type.
108
+
6. Migrate the artifact (using `IArtifactMigrator`).
109
+
7. Initialize artifact processing (using `IServiceConnector.ProcessInit(...)`) and track deploy state with next passes.
110
+
7. For each next process pass (starting at the lowest initial next pass):
111
+
1. Process artifact (using `IServiceConnector.Process(...)`).
112
+
2. During processing: service connectors for content, media and members migrate property type values if a property editor alias has changed (using `IPropertyTypeMigrator`).
113
+
3. When no next pass is required (the deploy state returns -1 as next pass):
114
+
1. Publish an `ArtifactImportedNotification`.
115
+
2. Report the import process (using `IProgress.Report(...)`).
116
+
8. The Deploy scope is completed, causing all scoped notifications to be published to handlers implementing `IDistributedCacheNotificationHandler`) and completing the import.
117
+
90
118
### Details of Specific Migrations
91
119
92
120
Umbraco Deploy ships with migrators to handle the conversion of core property editors as they have changed, been removed or replaced between versions.
@@ -95,7 +123,7 @@ Open source migrators may be built by HQ or the community for property editors f
95
123
96
124
#### Grid to Block Grid
97
125
98
-
The grid editor introduced in Umbraco 7 has been removed from Umbraco 14. It's functionality is replaced with the Block Grid.
126
+
The Grid editor introduced in Umbraco 7 can still be used in version 13 but has been removed from Umbraco 14. Its functionality is replaced with the Block Grid editor.
99
127
100
128
With Deploy migrators we have support for migrating Data Type configuration and property data between these property editors.
101
129
@@ -118,6 +146,10 @@ internal sealed class DeployMigratorsComposer : IComposer
118
146
}
119
147
```
120
148
149
+
{% hint style="info" %}
150
+
The project you are importing into needs to know about any custom legacy Grid editor configurations to migrate to the Block Grid editor correctly. Make sure to either copy the `grid.editors.config.js` and `package.manifest` (containing grid editors) files or override the `GetGridEditors()` method of the artifact migrator to provide this.
151
+
{% endhint %}
152
+
121
153
These implementations make use of the following conventions to migrate the data:
122
154
123
155
-`ReplaceGridDataTypeArtifactMigrator`:
@@ -201,6 +233,10 @@ The migrators add the following behavior:
201
233
-`ReplaceDocTypeGridEditorDataTypeArtifactMigrator` extends `ReplaceGridDataTypeArtifactMigrator` and ensures any DocTypeGridEditor is migrated to blocks using the allowed element types. If the element types aren't found the default implementation will migrate to new element types.
202
234
-`DocTypeGridEditorPropertyTypeMigrator` extends `GridPropertyTypeMigrator` and ensures the Doc Type Grid Editor values are mapped one-to-one to the block item data.
203
235
236
+
{% hint style="info" %}
237
+
The artifact migrator adds the default DocTypeGridEditor configuration (with alias `docType`). This can be disabled by setting the `AddDefaultDocTypeGridEditor` property to `false` in a custom/inherited class. Similar to the base migrator, any custom DocTypeGridEditor configurations must be available to migrate to the Block Grid editor correctly.
238
+
{% endhint %}
239
+
204
240
#### Migrating from Matryoshka
205
241
206
242
[Matryoshka](https://our.umbraco.com/packages/backoffice-extensions/matryoshka-tabs-for-umbraco-8/) was an Umbraco package that added tab support for document types in Umbraco. The feature was subsequently added to the product itself.
Copy file name to clipboardExpand all lines: 14/umbraco-deploy/deployment-workflow/import-export-v7.md
+10-7Lines changed: 10 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,13 @@ description: How to export content and schema from Umbraco 7 and import into a n
5
5
6
6
### Migrating from Umbraco 7
7
7
8
-
The import and export features are available for Umbraco Deploy supporting Umbraco 8 and above. It's not been ported back to Umbraco 7, hence you cannot trigger an export from there in the same way.
8
+
The import and export features are available for Umbraco Deploy supporting Umbraco 8 and above. It's not been ported back to Umbraco 7, hence you cannot trigger an export from the backoffice or use the service.
9
9
10
-
We can use this feature to help migrate from Umbraco 7 to a supported major version. However, it requires additional logic to be added to the Deploy Contrib project.
10
+
However, you can still use this feature to help migrate from Umbraco 7 to a supported major version. This requires adding additional logic to your Umbraco 7 project to create an export ZIP archive similar to newer versions.
11
11
12
12
#### Exporting Umbraco 7 content and schema
13
13
14
-
We can generate an export archive in the same format as used by the import/export feature. This is done by adding the [`Umbraco.Deploy.Contrib.Export` assembly](https://github.com/umbraco/Umbraco.Deploy.Contrib/releases/tag/release-2.0.0-export) to your Umbraco 7 project. This archive can then be imported into a newer Umbraco version by configuring the legacy import migrators. You can also apply additional migrators to update obsolete data types and property data into newer equivalents.
14
+
You can generate an export archive in the same format as the import/export feature. This is done by adding the [`Umbraco.Deploy.Contrib.Export` assembly](https://github.com/umbraco/Umbraco.Deploy.Contrib/releases/tag/release-2.0.0-export) to your Umbraco 7 project (that already has Deploy and Deploy Contrib installed, see below). This archive can be imported into a newer Umbraco version by configuring the legacy import migrators. You can also apply additional migrators to update obsolete data types and property data into newer equivalents.
15
15
16
16
This is possible via code, by temporarily applying a composer to an Umbraco 7 project to generate the export archive on start-up:
17
17
@@ -150,6 +150,9 @@ internal class LegacyImportComposer : IComposer
150
150
builder.DeployArtifactMigrators()
151
151
.AddLegacyMigrators()
152
152
.Append<ElementTypeArtifactMigrator>();
153
+
154
+
builder.DeployPropertyTypeMigrators()
155
+
.AddLegacyMigrators(); // Available from Deploy Contrib 13.3.0 and 14.2.0+
@@ -173,17 +176,17 @@ Umbraco Deploy for Umbraco 7 is no longer supported and was only available on Um
173
176
174
177
As such if you are looking to migrate from an Umbraco Cloud project running on Umbraco 7, you already have Umbraco Deploy installed.
175
178
176
-
If you have an Umbraco 7 on-premise website, you can use this guide to migrate from on-premise to Umbraco Cloud. Or to upgrade to a newer Deploy on-premise version. You will need to obtain and install Umbraco Deploy for Umbraco 7 into your project, solely to use the export feature.
179
+
If you have an Umbraco 7 on-premises website, you can use this guide to migrate from on-premises to Umbraco Cloud. Or to upgrade to a newer Deploy On-premises version. You need to obtain and install Umbraco Deploy for Umbraco 7 into your project, solely to use the export feature.
177
180
178
181
The export feature can be used without a license.
179
182
180
183
{% hint style="info" %}
181
184
182
-
A license is required for the Umbraco project you are importing into. This can be a license that comes as part of an Umbraco Cloud subscription, or an on-premise one.
185
+
A license is required for the Umbraco project you are importing into. This can be a license that comes as part of an Umbraco Cloud subscription, or a Deploy On-premises one.
183
186
184
187
{% endhint %}
185
188
186
-
Use this guide to migrate from on-premise to Umbraco Cloud or to upgrade to a newer Deploy version on-premise.
189
+
Use this guide to migrate from on-premises to Umbraco Cloud or to upgrade to a newer Deploy On-premises version.
187
190
188
191
1. Download the required `dll` files for Umbraco Deploy for Umbraco 7 from the following links:
189
192
@@ -226,4 +229,4 @@ Use this guide to migrate from on-premise to Umbraco Cloud or to upgrade to a ne
226
229
227
230
4. Export Content.
228
231
229
-
-**Export** your content, schema, and files to zip.
232
+
-**Export** your content, schema, and files to zip.
0 commit comments