IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_REPORTEXTMODEL' AND KSQL_COL_NAME ='FAUDITORID')
ALTER TABLE T_MSPLAN_REPORTEXTMODEL ADD (FAUDITORID BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_REPORTEXTMODEL' AND KSQL_COL_NAME ='FDISABLEORID')
ALTER TABLE T_MSPLAN_REPORTEXTMODEL ADD (FDISABLEORID BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_REPORTEXTMODEL' AND KSQL_COL_NAME ='FENABLEORID')
ALTER TABLE T_MSPLAN_REPORTEXTMODEL ADD (FENABLEORID BIGINT DEFAULT 0 NOT NULL );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_REPORTEXTMODEL' AND KSQL_COL_NAME ='FAUDITTIME')
ALTER TABLE T_MSPLAN_REPORTEXTMODEL ADD (FAUDITTIME DATETIME );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_REPORTEXTMODEL' AND KSQL_COL_NAME ='FDISABLETIME')
ALTER TABLE T_MSPLAN_REPORTEXTMODEL ADD (FDISABLETIME DATETIME );

IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_MSPLAN_REPORTEXTMODEL' AND KSQL_COL_NAME ='FENABLETIME')
ALTER TABLE T_MSPLAN_REPORTEXTMODEL ADD (FENABLETIME DATETIME );