Skip to content

Commit

Permalink
LPD-38542 Move upgrade to head as some customers might skip it due to…
Browse files Browse the repository at this point in the history
… BPR-7796
  • Loading branch information
pedro-oliveira446 authored and brianchandotcom committed Oct 9, 2024
1 parent 8fb761c commit f20b09f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ Import-Package:\
org.tukaani.*;resolution:=optional,\
\
*
Liferay-Require-SchemaVersion: 5.5.2
Liferay-Require-SchemaVersion: 5.6.1
Liferay-Service: true
-dsannotations-options: inherit
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,16 @@ protected String[] getTableNames() {
"5.4.4", "5.4.5",
new DDMTemplateLinkUpgradeProcess(_classNameLocalService));

registry.register("5.4.5", "5.5.0", new DummyUpgradeStep());

registry.register(
"5.5.0", "5.5.1",
new com.liferay.dynamic.data.mapping.internal.upgrade.v5_5_1.
DDMFieldUpgradeProcess(),
new DDMFieldAttributeUpgradeProcess());

registry.register(
"5.4.5", "5.5.0",
"5.5.1", "5.6.0",
new BaseExternalReferenceCodeUpgradeProcess() {

@Override
Expand All @@ -582,14 +590,8 @@ protected String[][] getTableAndPrimaryKeyColumnNames() {
});

registry.register(
"5.5.0", "5.5.1",
new com.liferay.dynamic.data.mapping.internal.upgrade.v5_5_1.
DDMFieldUpgradeProcess(),
new DDMFieldAttributeUpgradeProcess());

registry.register(
"5.5.1", "5.5.2",
new com.liferay.dynamic.data.mapping.internal.upgrade.v5_5_2.
"5.6.0", "5.6.1",
new com.liferay.dynamic.data.mapping.internal.upgrade.v5_6_1.
DDMFieldAttributeUpgradeProcess(
_classNameLocalService, _dlFileEntryLocalService,
_fileEntryFriendlyURLResolver, _groupLocalService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/

package com.liferay.dynamic.data.mapping.internal.upgrade.v5_5_2;
package com.liferay.dynamic.data.mapping.internal.upgrade.v5_6_1;

import com.liferay.adaptive.media.image.html.constants.AMImageHTMLConstants;
import com.liferay.document.library.kernel.exception.NoSuchFileEntryException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/

package com.liferay.dynamic.data.mapping.internal.upgrade.v5_5_2.test;
package com.liferay.dynamic.data.mapping.internal.upgrade.v5_6_1.test;

import com.liferay.arquillian.extension.junit.bridge.junit.Arquillian;
import com.liferay.document.library.kernel.model.DLFileEntry;
Expand Down Expand Up @@ -121,7 +121,7 @@ private void _runUpgrade() throws Exception {
}

private static final String _CLASS_NAME =
"com.liferay.dynamic.data.mapping.internal.upgrade.v5_5_2." +
"com.liferay.dynamic.data.mapping.internal.upgrade.v5_6_1." +
"DDMFieldAttributeUpgradeProcess";

@Inject(
Expand Down

0 comments on commit f20b09f

Please sign in to comment.