001    /**
002     * Copyright (c) 2000-2013 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.v6_0_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class LayoutTable {
024    
025            public static final String TABLE_NAME = "Layout";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"plid", Types.BIGINT},
029                    {"groupId", Types.BIGINT},
030                    {"companyId", Types.BIGINT},
031                    {"privateLayout", Types.BOOLEAN},
032                    {"layoutId", Types.BIGINT},
033                    {"parentLayoutId", Types.BIGINT},
034                    {"name", Types.VARCHAR},
035                    {"title", Types.VARCHAR},
036                    {"description", Types.VARCHAR},
037                    {"type_", Types.VARCHAR},
038                    {"typeSettings", Types.CLOB},
039                    {"hidden_", Types.BOOLEAN},
040                    {"friendlyURL", Types.VARCHAR},
041                    {"iconImage", Types.BOOLEAN},
042                    {"iconImageId", Types.BIGINT},
043                    {"themeId", Types.VARCHAR},
044                    {"colorSchemeId", Types.VARCHAR},
045                    {"wapThemeId", Types.VARCHAR},
046                    {"wapColorSchemeId", Types.VARCHAR},
047                    {"css", Types.VARCHAR},
048                    {"priority", Types.INTEGER},
049                    {"layoutPrototypeId", Types.BIGINT},
050                    {"dlFolderId", Types.BIGINT}
051            };
052    
053            public static final String TABLE_SQL_CREATE = "create table Layout (plid LONG not null primary key,groupId LONG,companyId LONG,privateLayout BOOLEAN,layoutId LONG,parentLayoutId LONG,name STRING null,title STRING null,description STRING null,type_ VARCHAR(75) null,typeSettings TEXT null,hidden_ BOOLEAN,friendlyURL VARCHAR(255) null,iconImage BOOLEAN,iconImageId LONG,themeId VARCHAR(75) null,colorSchemeId VARCHAR(75) null,wapThemeId VARCHAR(75) null,wapColorSchemeId VARCHAR(75) null,css STRING null,priority INTEGER,layoutPrototypeId LONG,dlFolderId LONG)";
054    
055            public static final String TABLE_SQL_DROP = "drop table Layout";
056    
057            public static final String[] TABLE_SQL_ADD_INDEXES = {
058                    "create index IX_C7FBC998 on Layout (companyId)",
059                    "create index IX_FAD05595 on Layout (dlFolderId)",
060                    "create index IX_C099D61A on Layout (groupId)",
061                    "create index IX_705F5AA3 on Layout (groupId, privateLayout)",
062                    "create unique index IX_BC2C4231 on Layout (groupId, privateLayout, friendlyURL)",
063                    "create unique index IX_7162C27C on Layout (groupId, privateLayout, layoutId)",
064                    "create index IX_6DE88B06 on Layout (groupId, privateLayout, parentLayoutId)",
065                    "create index IX_1A1B61D2 on Layout (groupId, privateLayout, type_)",
066                    "create index IX_23922F7D on Layout (iconImageId)"
067            };
068    
069    }