/**Begin D:\PDM_UPGRADE\PDM1\HRSS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRSS_SCHOBJRELCON', 'T_HRSS_SCHOBJRELCON', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SCHOBJFIELD_L', 'T_HRSS_SCHOBJFIELD_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SCHOBJFIELD_L') CREATE INDEX IDX_HRSS_SCHOBJFIELD_L ON T_HRSS_SCHOBJFIELD_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_HRSS_SCHOBJENTITY', 'T_HRSS_SCHOBJENTITY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SCHOBJENTITY') CREATE INDEX IDX_HRSS_SCHOBJENTITY ON T_HRSS_SCHOBJENTITY ( FSEARCHOBJID );


 EXEC P_ALTERPK 'PK_HRSS_SEARCHOBJECT', 'T_HRSS_SEARCHOBJECT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SEARCHOBJECT') CREATE INDEX IDX_HRSS_SEARCHOBJECT ON T_HRSS_SEARCHOBJECT ( FNUMBER );


 EXEC P_ALTERPK 'PK_HRSS_SCHOBJRELATION', 'T_HRSS_SCHOBJRELATION', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SCHOBJRELATION') CREATE INDEX IDX_HRSS_SCHOBJRELATION ON T_HRSS_SCHOBJRELATION ( FSEARCHOBJID );


 EXEC P_ALTERPK 'PK_HRSS_SEARCHOBJECT_L', 'T_HRSS_SEARCHOBJECT_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SEARCHOBJECT_L') CREATE INDEX IDX_HRSS_SEARCHOBJECT_L ON T_HRSS_SEARCHOBJECT_L ( FID ,FLOCALEID );


 EXEC P_ALTERPK 'PK_HRSS_SCHOBJFIELD', 'T_HRSS_SCHOBJFIELD', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SCHOBJFIELD') CREATE INDEX IDX_HRSS_SCHOBJFIELD ON T_HRSS_SCHOBJFIELD ( FSEARCHOBJID );



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