/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_APPROVE' AND KSQL_COL_NAME ='FGROUPID') 
 ALTER TABLE T_PUR_APPROVE ADD (FGROUPID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_APPROVE' AND KSQL_COL_NAME ='FCERTIFIAPPLY') 
 ALTER TABLE T_PUR_APPROVE ADD (FCERTIFIAPPLY BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_APPROVE' AND KSQL_COL_NAME ='FTYPE') 
 ALTER TABLE T_PUR_APPROVE ADD (FTYPE CHAR(1) DEFAULT ' ' NOT NULL );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PUR_table.sql **/
