001
014
015 package com.liferay.portal.upgrade.v6_2_0.util;
016
017 import java.sql.Types;
018
019
023 public class DDMTemplateTable {
024
025 public static final String TABLE_NAME = "DDMTemplate";
026
027 public static final Object[][] TABLE_COLUMNS = {
028 {"uuid_", Types.VARCHAR},
029 {"templateId", Types.BIGINT},
030 {"groupId", Types.BIGINT},
031 {"companyId", Types.BIGINT},
032 {"userId", Types.BIGINT},
033 {"userName", Types.VARCHAR},
034 {"createDate", Types.TIMESTAMP},
035 {"modifiedDate", Types.TIMESTAMP},
036 {"classNameId", Types.BIGINT},
037 {"classPK", Types.BIGINT},
038 {"templateKey", Types.VARCHAR},
039 {"name", Types.VARCHAR},
040 {"description", Types.VARCHAR},
041 {"type_", Types.VARCHAR},
042 {"mode_", Types.VARCHAR},
043 {"language", Types.VARCHAR},
044 {"script", Types.CLOB},
045 {"cacheable", Types.BOOLEAN},
046 {"smallImage", Types.BOOLEAN},
047 {"smallImageId", Types.BIGINT},
048 {"smallImageURL", Types.VARCHAR}
049 };
050
051 public static final String TABLE_SQL_CREATE = "create table DDMTemplate (uuid_ VARCHAR(75) null,templateId LONG not null primary key,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,classNameId LONG,classPK LONG,templateKey VARCHAR(75) null,name STRING null,description STRING null,type_ VARCHAR(75) null,mode_ VARCHAR(75) null,language VARCHAR(75) null,script TEXT null,cacheable BOOLEAN,smallImage BOOLEAN,smallImageId LONG,smallImageURL VARCHAR(75) null)";
052
053 public static final String TABLE_SQL_DROP = "drop table DDMTemplate";
054
055 public static final String[] TABLE_SQL_ADD_INDEXES = {
056 "create index IX_B6356F93 on DDMTemplate (classNameId, classPK, type_)",
057 "create index IX_32F83D16 on DDMTemplate (classPK)",
058 "create index IX_DB24DDDD on DDMTemplate (groupId)",
059 "create index IX_BD9A4A91 on DDMTemplate (groupId, classNameId)",
060 "create index IX_824ADC72 on DDMTemplate (groupId, classNameId, classPK)",
061 "create index IX_90800923 on DDMTemplate (groupId, classNameId, classPK, type_)",
062 "create index IX_F0C3449 on DDMTemplate (groupId, classNameId, classPK, type_, mode_)",
063 "create unique index IX_E6DFAB84 on DDMTemplate (groupId, classNameId, templateKey)",
064 "create index IX_B1C33EA6 on DDMTemplate (groupId, classPK)",
065 "create index IX_33BEF579 on DDMTemplate (language)",
066 "create index IX_127A35B0 on DDMTemplate (smallImageId)",
067 "create index IX_CAE41A28 on DDMTemplate (templateKey)",
068 "create index IX_C4F283C8 on DDMTemplate (type_)",
069 "create index IX_F2A243A7 on DDMTemplate (uuid_)",
070 "create index IX_D4C2C221 on DDMTemplate (uuid_, companyId)",
071 "create unique index IX_1AA75CE3 on DDMTemplate (uuid_, groupId)"
072 };
073
074 }