/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_CLEARSETLOG' AND KSQL_COL_NAME ='FREPEAT') 
 ALTER TABLE T_MDS_CLEARSETLOG ADD (FREPEAT CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_CLEARSETLOG' AND KSQL_COL_NAME ='FPREDTIME') 
 ALTER TABLE T_MDS_CLEARSETLOG ADD (FPREDTIME  BIGINT DEFAULT 0 NOT NULL  );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MDS_CLEARSETLOG' AND KSQL_COL_NAME ='FRUNNINGTYPE') 
 ALTER TABLE T_MDS_CLEARSETLOG ADD (FRUNNINGTYPE NVARCHAR(30) DEFAULT ' ' NOT NULL );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\MDS_table.sql **/
