/**Begin D:\PDM_UPGRADE\PDM1\HBSS_constraint.sql **/

 EXEC P_ALTERPK 'PK_HBSS_CAPITEMFWENTRY_L', 'T_HBSS_CAPITEMFWENTRY_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_CAPITEMNGENTRY_L', 'T_HBSS_CAPITEMNGENTRY_L', 'FPKID', '1';

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


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