Skip to content

Commit

Permalink
LPS-132441 Create upgrade to drop MBStatsUser table
Browse files Browse the repository at this point in the history
  • Loading branch information
ctang3 authored and brianchandotcom committed Jun 2, 2021
1 parent 5d7e25b commit a443a93
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/apps/message-boards/message-boards-service/bnd.bnd
@@ -1,6 +1,6 @@
Bundle-Name: Liferay Message Boards Service
Bundle-SymbolicName: com.liferay.message.boards.service
Bundle-Version: 5.0.5
Liferay-Require-SchemaVersion: 5.2.0
Liferay-Require-SchemaVersion: 6.0.0
Liferay-Service: true
-dsannotations-options: inherit
Expand Up @@ -32,6 +32,7 @@
import com.liferay.message.boards.internal.upgrade.v4_0_0.MBCategoryThreadCountUpgradeProcess;
import com.liferay.message.boards.internal.upgrade.v5_0_0.MBThreadMessageCountUpgradeProcess;
import com.liferay.message.boards.internal.upgrade.v5_2_0.MBMessageExternalReferenceCodeUpgradeProcess;
import com.liferay.message.boards.internal.upgrade.v6_0_0.MBStatsUserUpgradeProcess;
import com.liferay.message.boards.model.MBThread;
import com.liferay.portal.kernel.service.ResourceActionLocalService;
import com.liferay.portal.kernel.service.ResourcePermissionLocalService;
Expand Down Expand Up @@ -110,6 +111,8 @@ protected String[] getModuleTableNames() {
registry.register(
"5.1.0", "5.2.0",
new MBMessageExternalReferenceCodeUpgradeProcess());

registry.register("5.2.0", "6.0.0", new MBStatsUserUpgradeProcess());
}

@Reference
Expand Down
@@ -0,0 +1,29 @@
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/

package com.liferay.message.boards.internal.upgrade.v6_0_0;

import com.liferay.portal.kernel.upgrade.UpgradeProcess;

/**
* @author Cheryl Tang
*/
public class MBStatsUserUpgradeProcess extends UpgradeProcess {

@Override
protected void doUpgrade() throws Exception {
runSQL("drop table MBStatsUser");
}

}

0 comments on commit a443a93

Please sign in to comment.