/**Begin C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRCS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_LABELPOLICYTASK' AND KSQL_COL_NAME IN ('FTOTALQUANTITY')) 
 ALTER TABLE T_HRCS_LABELPOLICYTASK ADD (FTOTALQUANTITY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_LABELPOLICYTASK' AND KSQL_COL_NAME IN ('FPROCESSEDQUANTITY')) 
 ALTER TABLE T_HRCS_LABELPOLICYTASK ADD (FPROCESSEDQUANTITY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_HRCS_LABELPOLICYTASK' AND KSQL_COL_NAME IN ('FMATCHEDQUANTITY')) 
 ALTER TABLE T_HRCS_LABELPOLICYTASK ADD (FMATCHEDQUANTITY BIGINT DEFAULT 0 NOT NULL );

/**End C:\Users\rd_jin_gu\Documents\work\PDM_UPGRADE\PDM1\HRCS_table.sql **/
