/**Begin D:\PDM_UPGRADE\PDM1\CAS_table.sql **/
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECPAYRULE_E' AND KSQL_COL_NAME ='FRECERID')
 ALTER TABLE T_CAS_RECPAYRULE_E ADD (FRECERID BIGINT DEFAULT 0 NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECPAYRULE_E' AND KSQL_COL_NAME ='FRECERBASETYPE')
 ALTER TABLE T_CAS_RECPAYRULE_E ADD (FRECERBASETYPE NVARCHAR(50) DEFAULT ' ' NOT NULL );
IF NOT EXISTS (SELECT 1 FROM KSQL_USERCOLUMNS WHERE KSQL_COL_TABNAME = 'T_CAS_RECPAYRULE_E' AND KSQL_COL_NAME ='FRECER')
 ALTER TABLE T_CAS_RECPAYRULE_E ADD (FRECER NVARCHAR(100) DEFAULT ' ' NOT NULL );

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