/**Begin C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
 EXEC P_ALTERPK 'PK_SRM_AUTOEVASUPENTRY', 'T_SRM_AUTOEVASUPENTRY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_SRM_AUTOEVASUPENTRYVER', 'T_SRM_AUTOEVASUPENTRYVER', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_T_SRM_AUTOSCORERENTRY', 'T_SRM_AUTOSCORERENTRY', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRM_AUTOSCORER_ENTRYID') CREATE INDEX IDX_SRM_AUTOSCORER_ENTRYID ON T_SRM_AUTOSCORERENTRY ( FENTRYID );


 EXEC P_ALTERPK 'PK_SRM_AUTOSCORERENTRYVER', 'T_SRM_AUTOSCORERENTRYVER', 'FDETAILID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_SRM_AUTOSCORERVER_ENID') CREATE INDEX IDX_SRM_AUTOSCORERVER_ENID ON T_SRM_AUTOSCORERENTRYVER ( FENTRYID );



/**End C:\PDM_UPGRADE\PDM1\SRM_constraint.sql **/
