/**Begin C:\PDM_UPGRADE\PDM1\PBD_constraint.sql **/
 EXEC P_ALTERPK 'PK_PBD_CALLLOG', 'T_PBD_CALLLOG', 'FID', '1';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PBD_CALLLOG_CALLS') CREATE INDEX IDX_PBD_CALLLOG_CALLS ON T_PBD_CALLLOG ( FORGID ,FPROGRAMMEID ,FCALLDATETIME );


 EXEC P_ALTERPK 'PK_PBD_CALLLOG_ENTRYENTITY', 'T_PBD_CALLLOG_ENTRYENTITY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_PBD_CALLLOG_ENTRY_FID_FSEQ') CREATE INDEX IDX_PBD_CALLLOG_ENTRY_FID_FSEQ ON T_PBD_CALLLOG_ENTRYENTITY ( FID ,FSEQ );



/**End C:\PDM_UPGRADE\PDM1\PBD_constraint.sql **/
