001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.UpgradeAsset;
020    import com.liferay.portal.upgrade.v6_0_12.UpgradeBlogs;
021    import com.liferay.portal.upgrade.v6_0_12.UpgradeDocumentLibrary;
022    import com.liferay.portal.upgrade.v6_0_12.UpgradeExpando;
023    import com.liferay.portal.upgrade.v6_0_12.UpgradeLock;
024    import com.liferay.portal.upgrade.v6_0_12.UpgradeMessageBoards;
025    import com.liferay.portal.upgrade.v6_0_12.UpgradePermission;
026    import com.liferay.portal.upgrade.v6_0_12.UpgradePortletPreferences;
027    import com.liferay.portal.upgrade.v6_0_12.UpgradeResourcePermission;
028    import com.liferay.portal.upgrade.v6_0_12.UpgradeScheduler;
029    import com.liferay.portal.upgrade.v6_0_12.UpgradeSchema;
030    import com.liferay.portal.upgrade.v6_0_12.UpgradeScopes;
031    import com.liferay.portal.upgrade.v6_0_12.UpgradeUserName;
032    import com.liferay.portal.upgrade.v6_0_12.UpgradeVirtualHost;
033    
034    /**
035     * @author Brian Wing Shun Chan
036     * @author Douglas Wong
037     */
038    public class UpgradeProcess_6_0_12 extends UpgradeProcess {
039    
040            @Override
041            public int getThreshold() {
042                    return ReleaseInfo.RELEASE_6_0_12_BUILD_NUMBER;
043            }
044    
045            @Override
046            protected void doUpgrade() throws Exception {
047                    upgrade(UpgradeSchema.class);
048                    upgrade(UpgradeAsset.class);
049                    upgrade(UpgradeBlogs.class);
050                    upgrade(UpgradeDocumentLibrary.class);
051                    upgrade(UpgradeExpando.class);
052                    upgrade(UpgradeLock.class);
053                    upgrade(UpgradeMessageBoards.class);
054                    upgrade(UpgradePermission.class);
055                    upgrade(UpgradePortletPreferences.class);
056                    upgrade(UpgradeResourcePermission.class);
057                    upgrade(UpgradeScheduler.class);
058                    upgrade(UpgradeScopes.class);
059                    upgrade(UpgradeUserName.class);
060                    upgrade(UpgradeVirtualHost.class);
061            }
062    
063    }