001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.upgrade;
016    
017    import com.liferay.portal.kernel.upgrade.UpgradeProcess;
018    import com.liferay.portal.kernel.util.ReleaseInfo;
019    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeAsset;
020    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeDocumentLibrary;
021    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeMessageBoards;
022    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradePermission;
023    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradePortletPreferences;
024    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeSchema;
025    import com.liferay.portal.upgrade.v6_0_12_to_6_1_0.UpgradeUserName;
026    import com.liferay.portal.upgrade.v6_1_0.UpgradeAdminPortlets;
027    import com.liferay.portal.upgrade.v6_1_0.UpgradeCamelCasePortletPreferences;
028    import com.liferay.portal.upgrade.v6_1_0.UpgradeCountry;
029    import com.liferay.portal.upgrade.v6_1_0.UpgradeGroup;
030    import com.liferay.portal.upgrade.v6_1_0.UpgradeImageGallery;
031    import com.liferay.portal.upgrade.v6_1_0.UpgradeJournal;
032    import com.liferay.portal.upgrade.v6_1_0.UpgradeLayout;
033    import com.liferay.portal.upgrade.v6_1_0.UpgradeNavigation;
034    import com.liferay.portal.upgrade.v6_1_0.UpgradeSubscription;
035    import com.liferay.portal.upgrade.v6_1_0.UpgradeWorkflow;
036    
037    /**
038     * @author Matthew Kong
039     */
040    public class UpgradeProcess_6_0_12_to_6_1_0 extends UpgradeProcess {
041    
042            @Override
043            public int getThreshold() {
044                    return ReleaseInfo.RELEASE_6_1_0_BUILD_NUMBER;
045            }
046    
047            @Override
048            protected void doUpgrade() throws Exception {
049                    upgrade(UpgradeSchema.class);
050                    upgrade(UpgradeUserName.class);
051                    upgrade(UpgradeAdminPortlets.class);
052                    upgrade(UpgradeCamelCasePortletPreferences.class);
053                    upgrade(UpgradeCountry.class);
054                    upgrade(UpgradeDocumentLibrary.class);
055                    upgrade(UpgradeGroup.class);
056                    upgrade(UpgradeImageGallery.class);
057                    upgrade(UpgradeJournal.class);
058                    upgrade(UpgradeLayout.class);
059                    upgrade(UpgradeMessageBoards.class);
060                    upgrade(UpgradeNavigation.class);
061                    upgrade(UpgradePermission.class);
062                    upgrade(UpgradePortletPreferences.class);
063                    upgrade(UpgradeSubscription.class);
064                    upgrade(UpgradeWorkflow.class);
065                    upgrade(UpgradeAsset.class);
066            }
067    
068    }