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

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


 EXEC P_ALTERPK 'PK_HBSS_SCORESYSTEM_L', 'T_HBSS_SCORESYSTEM_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_SCORESYSTEMTAG', 'T_HBSS_SCORESYSTEMTAG', 'FENTRYID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_SCORESYSTEMTAG_L', 'T_HBSS_SCORESYSTEMTAG_L', 'FPKID', '1';

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



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