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.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    }