EXEC P_ALTERPK 'PK_T_CAS_CLAIM_CATEGORY', 'T_CAS_CLAIM_CATEGORY', 'FID', '1';

 EXEC p_DropIdx 'IDX_CAS_CATEGORY_UNT', 'T_CAS_CLAIM_CATEGORY';
 EXEC p_DropIdx 'IDX_CAS_CATEGORY_N', 'T_CAS_CLAIM_CATEGORY';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_CATEGORY_UNT') CREATE INDEX IDX_CAS_CATEGORY_UNT ON T_CAS_CLAIM_CATEGORY ( FUSERID ,FTYPE ,FNOTICEID );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_CATEGORY_N') CREATE INDEX IDX_CAS_CATEGORY_N ON T_CAS_CLAIM_CATEGORY ( FNOTICEID );


 EXEC P_ALTERPK 'PK_T_CAS_CLAIM_SUBSCRIPT', 'T_CAS_CLAIM_SUBSCRIPT', 'FID', '1';

 EXEC p_DropIdx 'IDX_CAS_SUBSCRIPT_ULT', 'T_CAS_CLAIM_SUBSCRIPT';
 EXEC p_DropIdx 'IDX_CAS_SUBSCRIPT_L', 'T_CAS_CLAIM_SUBSCRIPT';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_SUBSCRIPT_ULT') CREATE INDEX IDX_CAS_SUBSCRIPT_ULT ON T_CAS_CLAIM_SUBSCRIPT ( FUSERID ,FTYPE ,FLASTESTID );
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_SUBSCRIPT_L') CREATE INDEX IDX_CAS_SUBSCRIPT_L ON T_CAS_CLAIM_SUBSCRIPT ( FLASTESTID );