/**BEGIN E:\NEXTERP_PDM\PDM_UPGRADE\PDMS\BRANCH_LASTEST\PDM\POM_TABLE.SQL **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_MROORDER' AND KSQL_COL_NAME ='FATTACHMENTCOUNT') 
 ALTER TABLE T_POM_MROORDER ADD (FATTACHMENTCOUNT BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_MROORDER' AND KSQL_COL_NAME ='FPRINTCOUNT') 
 ALTER TABLE T_POM_MROORDER ADD (FPRINTCOUNT BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_MROORDERENTRY' AND KSQL_COL_NAME ='FMARTYPE') 
 ALTER TABLE T_POM_MROORDERENTRY ADD (FMARTYPE BIGINT DEFAULT 0 NOT NULL );

/**END E:\NEXTERP_PDM\PDM_UPGRADE\PDMS\BRANCH_LASTEST\PDM\POM_TABLE.SQL **/