/**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_ANNUALACCOUNT' AND KSQL_COL_NAME ='FMULTIGAAP') 
 ALTER TABLE T_BCM_ANNUALACCOUNT ADD (FMULTIGAAP BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ANNUALACCOUNT' AND KSQL_COL_NAME ='FDIM1') 
 ALTER TABLE T_BCM_ANNUALACCOUNT ADD (FDIM1 BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ANNUALACCOUNT' AND KSQL_COL_NAME ='FDIM2') 
 ALTER TABLE T_BCM_ANNUALACCOUNT ADD (FDIM2 BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ANNUALACCOUNT' AND KSQL_COL_NAME ='FDIM3') 
 ALTER TABLE T_BCM_ANNUALACCOUNT ADD (FDIM3 BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ANNUALACCOUNT' AND KSQL_COL_NAME ='FDIM4') 
 ALTER TABLE T_BCM_ANNUALACCOUNT ADD (FDIM4 BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ANNUALACCOUNT' AND KSQL_COL_NAME ='FDIM5') 
 ALTER TABLE T_BCM_ANNUALACCOUNT ADD (FDIM5 BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_ANNUALACCOUNT' AND KSQL_COL_NAME ='FDIM6') 
 ALTER TABLE T_BCM_ANNUALACCOUNT ADD (FDIM6 BIGINT DEFAULT 0 NOT NULL );
/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\BCM_table.sql **/
