/**Begin D:\PDM_UPGRADE\PDM1\POM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_MFTORDERENTRY_S' AND KSQL_COL_NAME ='FPRODUCTMASTERID') 
 ALTER TABLE T_POM_MFTORDERENTRY_S ADD (FPRODUCTMASTERID BIGINT DEFAULT 0 NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_XMFTORDERENTRY_S' AND KSQL_COL_NAME ='FPRODUCTMASTERID') 
 ALTER TABLE T_POM_XMFTORDERENTRY_S ADD (FPRODUCTMASTERID BIGINT DEFAULT 0 NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_MANUSTOCKENTRY' AND KSQL_COL_NAME ='FMATERIELMASTERID') 
 ALTER TABLE T_POM_MANUSTOCKENTRY ADD (FMATERIELMASTERID BIGINT DEFAULT 0 NOT NULL );

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_XMANUSTOCKENTRY' AND KSQL_COL_NAME ='FMATERIELMASTERID') 
 ALTER TABLE T_POM_XMANUSTOCKENTRY ADD (FMATERIELMASTERID BIGINT DEFAULT 0 NOT NULL );
 
/**End D:\PDM_UPGRADE\PDM1\POM_table.sql **/
