001    /**
002     * Copyright (c) 2000-2011 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.v5_2_5_to_6_0_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class WikiPageTable {
024    
025            public static final String TABLE_NAME = "WikiPage";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"uuid_", Types.VARCHAR},
029                    {"pageId", Types.BIGINT},
030                    {"resourcePrimKey", Types.BIGINT},
031                    {"groupId", Types.BIGINT},
032                    {"companyId", Types.BIGINT},
033                    {"userId", Types.BIGINT},
034                    {"userName", Types.VARCHAR},
035                    {"createDate", Types.TIMESTAMP},
036                    {"modifiedDate", Types.TIMESTAMP},
037                    {"nodeId", Types.BIGINT},
038                    {"title", Types.VARCHAR},
039                    {"version", Types.DOUBLE},
040                    {"minorEdit", Types.BOOLEAN},
041                    {"content", Types.CLOB},
042                    {"status", Types.INTEGER},
043                    {"statusByUserId", Types.BIGINT},
044                    {"statusByUserName", Types.VARCHAR},
045                    {"statusDate", Types.TIMESTAMP},
046                    {"summary", Types.VARCHAR},
047                    {"format", Types.VARCHAR},
048                    {"head", Types.BOOLEAN},
049                    {"parentTitle", Types.VARCHAR},
050                    {"redirectTitle", Types.VARCHAR}
051            };
052    
053            public static final String TABLE_SQL_CREATE = "create table WikiPage (uuid_ VARCHAR(75) null,pageId LONG not null primary key,resourcePrimKey LONG,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,nodeId LONG,title VARCHAR(255) null,version DOUBLE,minorEdit BOOLEAN,content TEXT null,status INTEGER,statusByUserId LONG,statusByUserName VARCHAR(75) null,statusDate DATE null,summary STRING null,format VARCHAR(75) null,head BOOLEAN,parentTitle VARCHAR(255) null,redirectTitle VARCHAR(255) null)";
054    
055            public static final String TABLE_SQL_DROP = "drop table WikiPage";
056    
057            public static final String[] TABLE_SQL_ADD_INDEXES = {
058                    "create index IX_A2001730 on WikiPage (format)",
059                    "create index IX_C8A9C476 on WikiPage (nodeId)",
060                    "create index IX_E7F635CA on WikiPage (nodeId, head)",
061                    "create index IX_65E84AF4 on WikiPage (nodeId, head, parentTitle)",
062                    "create index IX_46EEF3C8 on WikiPage (nodeId, parentTitle)",
063                    "create index IX_1ECC7656 on WikiPage (nodeId, redirectTitle)",
064                    "create index IX_997EEDD2 on WikiPage (nodeId, title)",
065                    "create index IX_E745EA26 on WikiPage (nodeId, title, head)",
066                    "create index IX_EA22A30C on WikiPage (nodeId, title, head, status)",
067                    "create index IX_BEA33AB8 on WikiPage (nodeId, title, status)",
068                    "create unique index IX_3D4AF476 on WikiPage (nodeId, title, version)",
069                    "create index IX_9C0E478F on WikiPage (uuid_)",
070                    "create unique index IX_899D3DFB on WikiPage (uuid_, groupId)"
071            };
072    
073    }