001    /**
002     * Copyright (c) 2000-2012 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_2_0.util;
016    
017    import java.sql.Types;
018    
019    /**
020     * @author        Brian Wing Shun Chan
021     * @generated
022     */
023    public class DLSyncTable {
024    
025            public static final String TABLE_NAME = "DLSync";
026    
027            public static final Object[][] TABLE_COLUMNS = {
028                    {"syncId", Types.BIGINT},
029                    {"companyId", Types.BIGINT},
030                    {"createDate", Types.BIGINT},
031                    {"modifiedDate", Types.BIGINT},
032                    {"fileId", Types.BIGINT},
033                    {"fileUuid", Types.VARCHAR},
034                    {"repositoryId", Types.BIGINT},
035                    {"parentFolderId", Types.BIGINT},
036                    {"name", Types.VARCHAR},
037                    {"description", Types.VARCHAR},
038                    {"event", Types.VARCHAR},
039                    {"type_", Types.VARCHAR},
040                    {"version", Types.VARCHAR}
041            };
042    
043            public static final String TABLE_SQL_CREATE = "create table DLSync (syncId LONG not null primary key,companyId LONG,createDate LONG,modifiedDate LONG,fileId LONG,fileUuid VARCHAR(75) null,repositoryId LONG,parentFolderId LONG,name VARCHAR(255) null,description STRING null,event VARCHAR(75) null,type_ VARCHAR(75) null,version VARCHAR(75) null)";
044    
045            public static final String TABLE_SQL_DROP = "drop table DLSync";
046    
047            public static final String[] TABLE_SQL_ADD_INDEXES = {
048                    "create index IX_B53EC783 on DLSync (companyId, modifiedDate, repositoryId)",
049                    "create unique index IX_F9821AB4 on DLSync (fileId)"
050            };
051    
052    }