/**Begin C:\PDM_UPGRADE\PDM1\PUR_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_CACATEGORY' AND KSQL_COL_NAME IN ('FCATEGORYTYPE')) 
 ALTER TABLE T_PUR_CACATEGORY ADD (FCATEGORYTYPE CHAR(1) DEFAULT 'B' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_PUR_CACATEGORY' AND KSQL_COL_NAME IN ('FMATERIALID')) 
 ALTER TABLE T_PUR_CACATEGORY ADD (FMATERIALID BIGINT DEFAULT 0 NOT NULL );

/**End C:\PDM_UPGRADE\PDM1\PUR_table.sql **/
