/**Begin D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_FLOWSTEP' AND KSQL_COL_NAME ='FISSYNTOMDD') 
 ALTER TABLE T_BCM_FLOWSTEP ADD (FISSYNTOMDD CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_FLOWSTEP' AND KSQL_COL_NAME ='FMODULE') 
 ALTER TABLE T_BCM_FLOWSTEP ADD (FMODULE CHAR(1) DEFAULT '1' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_FLOWSTEP' AND KSQL_COL_NAME ='FINTERSEQ') 
 ALTER TABLE T_BCM_FLOWSTEP ADD (FINTERSEQ CHAR(1) DEFAULT '0' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_APPROVALAUTHORITY' AND KSQL_COL_NAME ='FMODULE') 
 ALTER TABLE T_BCM_APPROVALAUTHORITY ADD (FMODULE CHAR(1) DEFAULT '1' NOT NULL );

/**End D:\PDM\PDM_UPGRADE\pdm1\BCM_table.sql **/
