/**Begin D:\pdm\PDM_UPGRADE\pdm_new\RIM_constraint.sql **/
 EXEC P_ALTERPK 'PK_RIM_EXPORT_CONFIG', 'T_RIM_EXPORT_CONFIG', 'FID', '0';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_EXPORT_CONFIG') CREATE  CLUSTERED INDEX IDX_RIM_EXPORT_CONFIG ON T_RIM_EXPORT_CONFIG ( FQUERY_TYPE ,FCREATER ,FINVOICE_TYPE );


 EXEC P_ALTERPK 'PK_RIM_EXPORT_CONFIG_ITEM', 'T_RIM_EXPORT_CONFIG_ITEM', 'FENTRYID', '0';

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



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