1
22
23 package com.liferay.portal.upgrade.v4_3_0.util;
24
25 import java.sql.Types;
26
27
32 public class JournalArticleTable {
33
34 public static String TABLE_NAME = "JournalArticle";
35
36 public static Object[][] TABLE_COLUMNS = {
37 {"id_", new Integer(Types.BIGINT)},
38 {"resourcePrimKey", new Integer(Types.BIGINT)},
39 {"groupId", new Integer(Types.BIGINT)},
40 {"companyId", new Integer(Types.BIGINT)},
41 {"userId", new Integer(Types.BIGINT)},
42 {"userName", new Integer(Types.VARCHAR)},
43 {"createDate", new Integer(Types.TIMESTAMP)},
44 {"modifiedDate", new Integer(Types.TIMESTAMP)},
45 {"articleId", new Integer(Types.VARCHAR)},
46 {"version", new Integer(Types.DOUBLE)},
47 {"title", new Integer(Types.VARCHAR)},
48 {"description", new Integer(Types.VARCHAR)},
49 {"content", new Integer(Types.CLOB)},
50 {"type_", new Integer(Types.VARCHAR)},
51 {"structureId", new Integer(Types.VARCHAR)},
52 {"templateId", new Integer(Types.VARCHAR)},
53 {"displayDate", new Integer(Types.TIMESTAMP)},
54 {"approved", new Integer(Types.BOOLEAN)},
55 {"approvedByUserId", new Integer(Types.BIGINT)},
56 {"approvedByUserName", new Integer(Types.VARCHAR)},
57 {"approvedDate", new Integer(Types.TIMESTAMP)},
58 {"expired", new Integer(Types.BOOLEAN)},
59 {"expirationDate", new Integer(Types.TIMESTAMP)},
60 {"reviewDate", new Integer(Types.TIMESTAMP)}
61 };
62
63 public static String TABLE_SQL_CREATE = "create table JournalArticle (id_ LONG not null primary key,resourcePrimKey LONG,groupId LONG,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,articleId VARCHAR(75) null,version DOUBLE,title VARCHAR(100) null,description STRING null,content TEXT null,type_ VARCHAR(75) null,structureId VARCHAR(75) null,templateId VARCHAR(75) null,displayDate DATE null,approved BOOLEAN,approvedByUserId LONG,approvedByUserName VARCHAR(75) null,approvedDate DATE null,expired BOOLEAN,expirationDate DATE null,reviewDate DATE null)";
64
65 public static String TABLE_SQL_DROP = "drop table JournalArticle";
66
67 }