Skip to content

Commit a7ff1e2

Browse files
authored
Merge pull request #11447 from jaddie/bugfix/11442/MigrationStepsAreSkippedV817toV9
Bugfix/11442/migration steps are skipped v8.17 to v9
2 parents 7bed6e5 + af17859 commit a7ff1e2

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed

src/Umbraco.Infrastructure/Migrations/Upgrade/UmbracoPlan.cs

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -219,35 +219,32 @@ protected void DefinePlan()
219219
// so we need to ensure that migrations from 8.15 are included in the next
220220
// v9*.
221221

222-
Merge()
223-
// to 8.15.0
224-
.To<AddCmsContentNuByteColumn>("{8DDDCD0B-D7D5-4C97-BD6A-6B38CA65752F}")
225-
.To<UpgradedIncludeIndexes>("{4695D0C9-0729-4976-985B-048D503665D8}")
226-
.To<UpdateCmsPropertyGroupIdSeed>("{5C424554-A32D-4852-8ED1-A13508187901}")
227-
.With()
228-
// to 9.0.0 RC1
229-
.To<MigrateLogViewerQueriesFromFileToDb>("{22D801BA-A1FF-4539-BFCC-2139B55594F8}")
230-
.To<ExternalLoginTableIndexes>("{50A43237-A6F4-49E2-A7A6-5DAD65C84669}")
231-
.To<ExternalLoginTokenTable>("{3D8DADEF-0FDA-4377-A5F0-B52C2110E8F2}")
232-
.To<MemberTableColumns>("{1303BDCF-2295-4645-9526-2F32E8B35ABD}")
233-
.To<AddPasswordConfigToMemberTable>("{86AC839A-0D08-4D09-B7B5-027445E255A1}")
234-
.As("{5060F3D2-88BE-4D30-8755-CF51F28EAD12}");
235-
236-
Merge()
237-
// to 8.17.0
238-
.To<AddPropertyTypeGroupColumns>("{153865E9-7332-4C2A-9F9D-F20AEE078EC7}")
239-
.With()
240-
// This should be safe to execute again. We need it with a new name to ensure updates from all the following has executed this step.
241-
// - 8.15.0 RC - Current state: {4695D0C9-0729-4976-985B-048D503665D8}
242-
// - 8.15.0 Final - Current state: {5C424554-A32D-4852-8ED1-A13508187901}
243-
// - 9.0.0 RC1 - Current state: {5060F3D2-88BE-4D30-8755-CF51F28EAD12}
244-
.To<UpdateCmsPropertyGroupIdSeed>("{622E5172-42E1-4662-AD80-9504AF5A4E53}")
245-
.To<ExternalLoginTableIndexesFixup>("{10F7BB61-C550-426B-830B-7F954F689CDF}")
246-
.To<DictionaryTablesIndexes>("{12DCDE7F-9AB7-4617-804F-AB66BF360980}")
247-
.As("{5AAE6276-80DB-4ACF-B845-199BC6C37538}");
222+
// to 8.15.0
223+
To<AddCmsContentNuByteColumn>("{8DDDCD0B-D7D5-4C97-BD6A-6B38CA65752F}");
224+
To<UpgradedIncludeIndexes>("{4695D0C9-0729-4976-985B-048D503665D8}");
225+
To<UpdateCmsPropertyGroupIdSeed>("{5C424554-A32D-4852-8ED1-A13508187901}");
226+
227+
// to 8.17.0
228+
To<AddPropertyTypeGroupColumns>("{153865E9-7332-4C2A-9F9D-F20AEE078EC7}");
229+
230+
// This should be safe to execute again. We need it with a new name to ensure updates from all the following has executed this step.
231+
// - 8.15.0 RC - Current state: {4695D0C9-0729-4976-985B-048D503665D8}
232+
// - 8.15.0 Final - Current state: {5C424554-A32D-4852-8ED1-A13508187901}
233+
// - 9.0.0 RC1 - Current state: {5060F3D2-88BE-4D30-8755-CF51F28EAD12}
234+
To<UpdateCmsPropertyGroupIdSeed>("{622E5172-42E1-4662-AD80-9504AF5A4E53}");
235+
To<ExternalLoginTableIndexesFixup>("{10F7BB61-C550-426B-830B-7F954F689CDF}");
236+
To<DictionaryTablesIndexes>("{5AAE6276-80DB-4ACF-B845-199BC6C37538}");
237+
238+
// to 9.0.0 RC1
239+
To<MigrateLogViewerQueriesFromFileToDb>("{22D801BA-A1FF-4539-BFCC-2139B55594F8}");
240+
To<ExternalLoginTableIndexes>("{50A43237-A6F4-49E2-A7A6-5DAD65C84669}");
241+
To<ExternalLoginTokenTable>("{3D8DADEF-0FDA-4377-A5F0-B52C2110E8F2}");
242+
To<MemberTableColumns>("{1303BDCF-2295-4645-9526-2F32E8B35ABD}");
243+
To<AddPasswordConfigToMemberTable>("{5060F3D2-88BE-4D30-8755-CF51F28EAD12}");
244+
To<AddPropertyTypeGroupColumns>("{A2686B49-A082-4B22-97FD-AAB154D46A57}"); // Re-run this migration to make sure it has executed to account for migrations going out of sync between versions.
248245

249246
// TO 9.0.0-rc4
250-
To<UmbracoServerColumn>("5E02F241-5253-403D-B5D3-7DB00157E20F");
247+
To<UmbracoServerColumn>("5E02F241-5253-403D-B5D3-7DB00157E20F"); // Jaddie: This GUID is missing the { }, although this likely can't be changed now as it will break installs going forwards
251248

252249
// TO 9.0.0
253250

0 commit comments

Comments
 (0)