forked from liferay/liferay-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52cf5df
commit 241b69b
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...ain/java/com/liferay/object/internal/upgrade/v7_2_0/ObjectRelationshipUpgradeProcess.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/** | ||
* SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com | ||
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06 | ||
*/ | ||
|
||
package com.liferay.object.internal.upgrade.v7_2_0; | ||
|
||
import com.liferay.portal.kernel.upgrade.UpgradeProcess; | ||
import com.liferay.portal.kernel.upgrade.UpgradeProcessFactory; | ||
import com.liferay.portal.kernel.upgrade.UpgradeStep; | ||
|
||
/** | ||
* @author Gabriel Albuquerque | ||
*/ | ||
public class ObjectRelationshipUpgradeProcess extends UpgradeProcess { | ||
|
||
@Override | ||
protected void doUpgrade() throws Exception { | ||
runSQL("update ObjectRelationship set system = [$FALSE$]"); | ||
} | ||
|
||
@Override | ||
protected UpgradeStep[] getPreUpgradeSteps() { | ||
return new UpgradeStep[] { | ||
UpgradeProcessFactory.addColumns( | ||
"ObjectRelationship", "system BOOLEAN") | ||
}; | ||
} | ||
} |