/**Begin D:\PDM_UPGRADE\PDM1\EB_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERTABLES WHERE KSQL_TABNAME = 'T_EB_EXPORTINFO')
CREATE TABLE T_EB_EXPORTINFO (
FID BIGINT DEFAULT 0 NOT NULL,
FTEMPLATE BIGINT DEFAULT 0 NOT NULL,
FSPREADSERIAL NCLOB
);

EXEC P_ALTERPK 'PK_T_EB_EXPORTINFO', 'T_EB_EXPORTINFO', 'FID', '1';

IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_T_EB_EXPORTINFO')
CREATE INDEX IDX_T_EB_EXPORTINFO ON T_EB_EXPORTINFO ( FTEMPLATE );

/**End D:\PDM_UPGRADE\PDM1\EB_table.sql **/