/**Begin D:\PDM_UPGRADE_1.3\PDM_UPGRADE\pdm1\RIM_constraint.sql **/

 EXEC P_ALTERPK 'PK_T_RIM_FPZS_CONFIG_ORG', 'T_RIM_FPZS_CONFIG_ORG', 'FENTRYID', '0';

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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_RIM_FPZS_CONFIG_ORGID') CREATE INDEX IDX_RIM_FPZS_CONFIG_ORGID ON T_RIM_FPZS_CONFIG_ORG ( FORG );

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