/**Begin D:\PDM_UPGRADE\PDM1\CAS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_CAS_PAYAPPLYBILL_BL', 'T_CAS_PAYAPPLYBILL_BL', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_CAS_PAYAPPLYBILL_BLID') CREATE INDEX T_CAS_PAYAPPLYBILL_BLID ON T_CAS_PAYAPPLYBILL_BL ( FENTRYID ,FBASEDATAID );


 EXEC P_ALTERPK 'PK_T_CAS_PAYINFOENTRY', 'T_CAS_PAYINFOENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_CAS_PAYINFOE_STATB') CREATE INDEX T_CAS_PAYINFOE_STATB ON T_CAS_PAYINFOENTRY ( FPAYSTATUS ,FPAYBILLNO );


 EXEC P_ALTERPK 'PK_T_CAS_BUSINESSENTRY', 'T_CAS_BUSINESSENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_CAS_BUSINESSENTRY_CH') CREATE INDEX T_CAS_BUSINESSENTRY_CH ON T_CAS_BUSINESSENTRY ( FID ,FBUSPAYEEAMOUNT );



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