/**Begin D:\DBA\PDM_UPGRADE\PDM1\BCM_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_MERGECONTROL' AND KSQL_COL_NAME IN ('FMODIFIER'))
 ALTER TABLE T_BCM_MERGECONTROL ADD (FMODIFIER BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_MERGECONTROL' AND KSQL_COL_NAME IN ('FCREATOR'))
 ALTER TABLE T_BCM_MERGECONTROL ADD (FCREATOR BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_BCM_MERGECONTROL' AND KSQL_COL_NAME IN ('FCREATETIME'))
 ALTER TABLE T_BCM_MERGECONTROL ADD (FCREATETIME DATETIME);

/**End D:\DBA\PDM_UPGRADE\PDM1\BCM_table.sql **/
