/**Begin D:\PDM_UPGRADE\PDM1\HBSS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HBSS_EVENT', 'T_HBSS_EVENT', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_EVENT') CREATE INDEX IDX_HBSS_EVENT ON T_HBSS_EVENT ( FEVENTTYPE );


 EXEC P_ALTERPK 'PK_HBSS_BUSIEVENTREL', 'T_HBSS_BUSIEVENTREL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_BUSIEVENTREL') CREATE INDEX IDX_HBSS_BUSIEVENTREL ON T_HBSS_BUSIEVENTREL ( FBOID );


 EXEC P_ALTERPK 'PK_HBSS_HISEVENTREL', 'T_HBSS_HISEVENTREL', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_HISEVENTREL') CREATE INDEX IDX_HBSS_HISEVENTREL ON T_HBSS_HISEVENTREL ( FBUSIEVENTID );



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