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

 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_xmanustockentry_a' AND KSQL_COL_NAME ='fbomentryid') 
 ALTER TABLE t_pom_xmanustockentry_a ADD (fbomentryid BIGINT DEFAULT 0 NOT NULL );
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_manustockentry_a' AND KSQL_COL_NAME ='fpromaterentryid') 
 ALTER TABLE t_pom_manustockentry_a ADD (fpromaterentryid BIGINT DEFAULT 0 NOT NULL );

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