/**Begin D:\PDM_UPGRADE\PDM1\HBSS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HBSS_LABORRELSTATUS_EY', 'T_HBSS_LABORRELSTATUS_EY', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_POSTSTATECLS', 'T_HBSS_POSTSTATECLS', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_POSTSTATECLS_L', 'T_HBSS_POSTSTATECLS_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_PROCREATMODE', 'T_HBSS_PROCREATMODE', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_PROCREATMODE_L', 'T_HBSS_PROCREATMODE_L', 'FPKID', '1';

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



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