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

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


 EXEC P_ALTERPK 'PK_HBSS_ORGCONFIG_L', 'T_HBSS_ORGCONFIG_L', 'FPKID', '1';

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


 EXEC P_ALTERPK 'PK_HBSS_ORGCONFIGENTRY', 'T_HBSS_ORGCONFIGENTRY', 'FENTRYID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_ORGCONFIGENTRY') CREATE INDEX IDX_HBSS_ORGCONFIGENTRY ON T_HBSS_ORGCONFIGENTRY ( FAPINUMBER );


 EXEC P_ALTERPK 'PK_HBSS_ORGCONFIGENTRY_L', 'T_HBSS_ORGCONFIGENTRY_L', 'FPKID', '1';

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



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