/**Begin D:\PDM_UPGRADE\PDM1\HRSS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRSS_SECONDFILTER_L', 'T_HRSS_SECONDFILTER_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SEARCHPROJECT_L', 'T_HRSS_SEARCHPROJECT_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SCENEENTITY', 'T_HRSS_SCENEENTITY', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SEARCHPROJECT', 'T_HRSS_SEARCHPROJECT', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SEARCHSCENECFG_L', 'T_HRSS_SEARCHSCENECFG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SEARCHPAGE', 'T_HRSS_SEARCHPAGE', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SEARCHPAGE') CREATE INDEX IDX_HRSS_SEARCHPAGE ON T_HRSS_SEARCHPAGE ( FID ,FBASEDATAID );


 EXEC P_ALTERPK 'PK_HRSS_SCENEENTITY_L', 'T_HRSS_SCENEENTITY_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SEARCHSCENECFG', 'T_HRSS_SEARCHSCENECFG', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_SECONDFILTER', 'T_HRSS_SECONDFILTER', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HRSS_SECONDFILTER') CREATE INDEX IDX_HRSS_SECONDFILTER ON T_HRSS_SECONDFILTER ( FSEARCHOBJFIELDID );



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