/**Begin D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_BDM_DOWNLOAD_DETAIL1', 'T_BDM_DOWNLOAD_DETAIL1', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_DOWNLOAD_DETAIL1_FK') CREATE  CLUSTERED INDEX IDX_BDM_DOWNLOAD_DETAIL1_FK ON T_BDM_DOWNLOAD_DETAIL1 ( FID );


 EXEC P_ALTERPK 'PK_BDM_DOWNLOAD_DETAIL2', 'T_BDM_DOWNLOAD_DETAIL2', 'FENTRYID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_BDM_DOWNLOAD_DETAIL2_FK') CREATE  CLUSTERED INDEX IDX_BDM_DOWNLOAD_DETAIL2_FK ON T_BDM_DOWNLOAD_DETAIL2 ( FID );



/**End D:\pdm\PDM_UPGRADE\pdm_new\BDM_constraint.sql **/
