/**Begin D:\PDM_UPGRADE\PDM1\CAS_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_CAS_UNBANKDETAIL', 'T_CAS_UNBANKDETAIL', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_UNBANKDETAIL_BD') CREATE INDEX IDX_CAS_UNBANKDETAIL_BD ON T_CAS_UNBANKDETAIL ( FBANKBILLID ,FBANKSOURCETYPE );


 EXEC P_ALTERPK 'PK_T_CAS_UNCOMPANYDETAIL', 'T_CAS_UNCOMPANYDETAIL', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_UNCOMPANYDETAIL_BI') CREATE INDEX IDX_CAS_UNCOMPANYDETAIL_BI ON T_CAS_UNCOMPANYDETAIL ( FBILLID ,FSETTLETYPE );



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