/**Begin D:\tools\db\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_RIM_DOWNLOAD_UPLODETAIL', 'T_RIM_DOWNLOAD_UPLODETAIL', 'FENTRYID', '1';

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

/**End D:\tools\db\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/
