 EXEC P_ALTERPK 'PK_T_CAS_FLOWCONFIRMLOG', 'T_CAS_FLOWCONFIRMLOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_FLOWCONFIRMLOG_NO') CREATE INDEX IDX_CAS_FLOWCONFIRMLOG_NO ON T_CAS_FLOWCONFIRMLOG ( FBILLNO );


 EXEC P_ALTERPK 'PK_T_CAS_FLOWLOG_ENTRY', 'T_CAS_FLOWLOG_ENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_CAS_FLOWLOG_ENTRY_FK') CREATE INDEX IDX_CAS_FLOWLOG_ENTRY_FK ON T_CAS_FLOWLOG_ENTRY ( FID );
