/**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_APPSETTING' AND KSQL_COL_NAME ='FSEARCHAPPTIME') 
 ALTER TABLE T_LOG_APPSETTING ADD (FSEARCHAPPTIME INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_APPSETTING' AND KSQL_COL_NAME ='FSEARCHAPPBAKTIME') 
 ALTER TABLE T_LOG_APPSETTING ADD (FSEARCHAPPBAKTIME INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_APPSETTING' AND KSQL_COL_NAME ='FDELETEAPPTIME') 
 ALTER TABLE T_LOG_APPSETTING ADD (FDELETEAPPTIME INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_APPSETTING' AND KSQL_COL_NAME ='FSEARCHARCHIVETIME') 
 ALTER TABLE T_LOG_APPSETTING ADD (FSEARCHARCHIVETIME INT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_LOG_APPSETTING' AND KSQL_COL_NAME ='FHEARTBEATTIME') 
 ALTER TABLE T_LOG_APPSETTING ADD (FHEARTBEATTIME INT DEFAULT 0 NOT NULL );

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