1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
13   */
14  
15  package com.liferay.portal.upgrade;
16  
17  import com.liferay.portal.kernel.upgrade.UpgradeProcess;
18  import com.liferay.portal.kernel.util.ReleaseInfo;
19  import com.liferay.portal.upgrade.v5_2_3.UpgradeBookmarks;
20  import com.liferay.portal.upgrade.v5_2_3.UpgradeCalendar;
21  import com.liferay.portal.upgrade.v5_2_3.UpgradeDocumentLibrary;
22  import com.liferay.portal.upgrade.v5_2_3.UpgradeDuplicates;
23  import com.liferay.portal.upgrade.v5_2_3.UpgradeGroup;
24  import com.liferay.portal.upgrade.v5_2_3.UpgradeImageGallery;
25  import com.liferay.portal.upgrade.v5_2_3.UpgradeLayout;
26  import com.liferay.portal.upgrade.v5_2_3.UpgradeMessageBoards;
27  import com.liferay.portal.upgrade.v5_2_3.UpgradeResource;
28  import com.liferay.portal.upgrade.v5_2_3.UpgradeResourceCode;
29  import com.liferay.portal.upgrade.v5_2_3.UpgradeRole;
30  import com.liferay.portal.upgrade.v5_2_3.UpgradeSchema;
31  import com.liferay.portal.upgrade.v5_2_3.UpgradeSoftwareCatalog;
32  import com.liferay.portal.upgrade.v5_2_3.UpgradeTags;
33  import com.liferay.portal.upgrade.v5_2_3.UpgradeUser;
34  import com.liferay.portal.upgrade.v5_2_3.UpgradeWiki;
35  
36  /**
37   * <a href="UpgradeProcess_5_2_3.java.html"><b><i>View Source</i></b></a>
38   *
39   * @author Brian Wing Shun Chan
40   */
41  public class UpgradeProcess_5_2_3 extends UpgradeProcess {
42  
43      public int getThreshold() {
44          return ReleaseInfo.RELEASE_5_2_3_BUILD_NUMBER;
45      }
46  
47      protected void doUpgrade() throws Exception {
48          upgrade(UpgradeSchema.class);
49          upgrade(UpgradeBookmarks.class);
50          upgrade(UpgradeCalendar.class);
51          upgrade(UpgradeDocumentLibrary.class);
52          upgrade(UpgradeGroup.class);
53          upgrade(UpgradeImageGallery.class);
54          upgrade(UpgradeLayout.class);
55          upgrade(UpgradeMessageBoards.class);
56          upgrade(UpgradeResource.class);
57          upgrade(UpgradeResourceCode.class);
58          upgrade(UpgradeRole.class);
59          upgrade(UpgradeSoftwareCatalog.class);
60          upgrade(UpgradeTags.class);
61          upgrade(UpgradeUser.class);
62          upgrade(UpgradeWiki.class);
63          upgrade(UpgradeDuplicates.class);
64          upgrade(DropIndexes.class);
65      }
66  
67  }