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

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


 EXEC P_ALTERPK 'PK_HBSS_APPENTRYCONFIG_L', 'T_HBSS_APPENTRYCONFIG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_ENCOURAGEWORDS', 'T_HBSS_ENCOURAGEWORDS', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_ENCOURAGEWORDS_L', 'T_HBSS_ENCOURAGEWORDS_L', 'FPKID', '1';

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



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