/**Begin D:\PDM_UPGRADE\PDM1\SOEHRR_constraint.sql **/
EXEC P_ALTERPK 'PK_SOEHRR_RPTTPLVERRULE', 'T_SOEHRR_RPTTPLVERRULE', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_SOEHRR_RPTTPLVERRULE' AND KSQL_INDNAME = 'IDX_SOEHRR_RPTTPLVERRULE') CREATE INDEX IDX_SOEHRR_RPTTPLVERRULE ON T_SOEHRR_RPTTPLVERRULE ( FREPORTCONFID ,FREPENTRYID );


EXEC P_ALTERPK 'PK_SOEHRR_RPTTPLVERRULE_L', 'T_SOEHRR_RPTTPLVERRULE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_TABNAME = 'T_SOEHRR_RPTTPLVERRULE_L' AND KSQL_INDNAME = 'IDX_SOEHRR_RPTTPLVERRULE_L') CREATE INDEX IDX_SOEHRR_RPTTPLVERRULE_L ON T_SOEHRR_RPTTPLVERRULE_L ( FID ,FLOCALEID );



/**End D:\PDM_UPGRADE\PDM1\SOEHRR_constraint.sql **/
