/**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_MANUSTOCKENTRY' AND KSQL_COL_NAME ='FISSTEP') 
 ALTER TABLE T_POM_MANUSTOCKENTRY ADD (FISSTEP CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_XMANUSTOCKENTRY' AND KSQL_COL_NAME ='FISSTEP') 
 ALTER TABLE T_POM_XMANUSTOCKENTRY ADD (FISSTEP CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_MANUSTOCKENTRY_A' AND KSQL_COL_NAME ='FOPERATIONDESC') 
 ALTER TABLE T_POM_MANUSTOCKENTRY_A ADD (FOPERATIONDESC NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_XMANUSTOCKENTRY_A' AND KSQL_COL_NAME ='FOPERATIONDESC') 
 ALTER TABLE T_POM_XMANUSTOCKENTRY_A ADD (FOPERATIONDESC NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_STOCKCHGLOGDETAIL' AND KSQL_COL_NAME ='FPROCESSSEQ') 
 ALTER TABLE T_POM_STOCKCHGLOGDETAIL ADD (FPROCESSSEQ NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_POM_STOCKCHGLOGDETAIL' AND KSQL_COL_NAME ='FOPRNO') 
 ALTER TABLE T_POM_STOCKCHGLOGDETAIL ADD (FOPRNO NVARCHAR(50) DEFAULT ' ' NOT NULL );

/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\POM_table.sql **/
