/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKFORMULASETTING' AND KSQL_COL_NAME ='FRANGETXT') 
 ALTER TABLE T_BCM_CHKFORMULASETTING ADD (FRANGETXT NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_CHKFORMULASETTING' AND KSQL_COL_NAME ='FFIXDIMTXT') 
 ALTER TABLE T_BCM_CHKFORMULASETTING ADD (FFIXDIMTXT NCLOB );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_TMPLCOLDIM' AND KSQL_COL_NAME ='FFORMULA') 
 ALTER TABLE T_BCM_TMPLCOLDIM ADD (FFORMULA NVARCHAR(1000) DEFAULT ' ' NOT NULL );

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