/**Begin C:\PDM_UPGRADE\sharepdmdir\srm\pdm1\SRM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_SRM_COMPEENTRYCONFIG', 'T_SRM_COMPEENTRYCONFIG', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_SRM_COMPEENTRYCONFIG_L', 'T_SRM_COMPEENTRYCONFIG_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRM_COMPEENTRYCONFIG_L') CREATE UNIQUE INDEX IDX_SRM_COMPEENTRYCONFIG_L ON T_SRM_COMPEENTRYCONFIG_L ( FENTRYID ,FLOCALEID );


/**End C:\PDM_UPGRADE\sharepdmdir\srm\pdm1\SRM_constraint.sql **/
