/**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_mroelecentry' AND KSQL_COL_NAME ='fsrctype') 
 ALTER TABLE t_pom_mroelecentry ADD (fsrctype varchar(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_mroelecentry' AND KSQL_COL_NAME ='fismodify') 
 ALTER TABLE t_pom_mroelecentry ADD (fismodify char(1) DEFAULT '0' NOT NULL );
 
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_mroelecsubentry' AND KSQL_COL_NAME ='ftagcreater') 
 ALTER TABLE t_pom_mroelecsubentry ADD (ftagcreater bigint DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_mroelecsubentry' AND KSQL_COL_NAME ='ftagcreatetime') 
 ALTER TABLE t_pom_mroelecsubentry ADD (ftagcreatetime datetime NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_mroelecsubentry' AND KSQL_COL_NAME ='fisremove') 
 ALTER TABLE t_pom_mroelecsubentry ADD (fisremove char(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_mroelecsubentry' AND KSQL_COL_NAME ='ftagmodifier') 
 ALTER TABLE t_pom_mroelecsubentry ADD (ftagmodifier bigint DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 't_pom_mroelecsubentry' AND KSQL_COL_NAME ='ftagmodifytime') 
 ALTER TABLE t_pom_mroelecsubentry ADD (ftagmodifytime datetime NULL );
/**END E:\NEXTERP_PDM\PDM_UPGRADE\PDMS\BRANCH_LASTEST\PDM\POM_TABLE.SQL **/