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.v5_1_7.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                    {"summary", Types.VARCHAR},
043                    {"format", Types.VARCHAR},
044                    {"head", Types.BOOLEAN},
045                    {"parentTitle", Types.VARCHAR},
046                    {"redirectTitle", Types.VARCHAR}
047            };
048    
049            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,summary STRING null,format VARCHAR(75) null,head BOOLEAN,parentTitle VARCHAR(255) null,redirectTitle VARCHAR(255) null)";
050    
051            public static final String TABLE_SQL_DROP = "drop table WikiPage";
052    
053            public static final String[] TABLE_SQL_ADD_INDEXES = {
054                    "create index IX_A2001730 on WikiPage (format)",
055                    "create index IX_C8A9C476 on WikiPage (nodeId)",
056                    "create index IX_E7F635CA on WikiPage (nodeId, head)",
057                    "create index IX_65E84AF4 on WikiPage (nodeId, head, parentTitle)",
058                    "create index IX_46EEF3C8 on WikiPage (nodeId, parentTitle)",
059                    "create index IX_1ECC7656 on WikiPage (nodeId, redirectTitle)",
060                    "create index IX_997EEDD2 on WikiPage (nodeId, title)",
061                    "create index IX_E745EA26 on WikiPage (nodeId, title, head)",
062                    "create unique index IX_3D4AF476 on WikiPage (nodeId, title, version)",
063                    "create index IX_9C0E478F on WikiPage (uuid_)",
064                    "create unique index IX_899D3DFB on WikiPage (uuid_, groupId)"
065            };
066    
067    }