/**Begin D:\PDM_UPGRADE\PDM1\CAS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_REFUND_OPLOG' AND KSQL_COL_NAME IN ('FTRACEID'))
ALTER TABLE T_CAS_REFUND_OPLOG ADD (FTRACEID BIGINT DEFAULT 0 NOT NULL );

EXEC p_AlterColumn 'T_CAS_REFUND_OPLOG', 'TRACEID', 'NULL', 'NULL', '1001', 'NULL';

/**End D:\PDM_UPGRADE\PDM1\CAS_table.sql **/
