/**Begin D:\pdm\PDM_UPGRADE\PDM1\HRSS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HRSS_CUSTOMFILTER', 'T_HRSS_CUSTOMFILTER', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_FILTERITEM', 'T_HRSS_FILTERITEM', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_CUSTOMFILTER_L', 'T_HRSS_CUSTOMFILTER_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HRSS_FILTERITEM_L', 'T_HRSS_FILTERITEM_L', 'FPKID', '1';

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



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