/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\LOG_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_EXPORTLOG' AND KSQL_COL_NAME ='FUSETIME') 
 ALTER TABLE T_LOG_EXPORTLOG ADD (FUSETIME INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_EXPORTLOG' AND KSQL_COL_NAME ='FEXPTTYPE') 
 ALTER TABLE T_LOG_EXPORTLOG ADD (FEXPTTYPE CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_EXPORTLOG' AND KSQL_COL_NAME ='FTOTAL') 
 ALTER TABLE T_LOG_EXPORTLOG ADD (FTOTAL INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_EXPORTLOG' AND KSQL_COL_NAME ='FCOMPLETE') 
 ALTER TABLE T_LOG_EXPORTLOG ADD (FCOMPLETE INT DEFAULT 0 NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\LOG_table.sql **/
