/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HBSS_constraint.sql **/
 EXEC P_ALTERPK 'PK_HBSS_PARAMETERCONFIG', 'T_HBSS_PARAMETERCONFIG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_PARAMETERCONFIG') CREATE INDEX IDX_HBSS_PARAMETERCONFIG ON T_HBSS_PARAMETERCONFIG ( FBASEDATAFIELD );


 EXEC P_ALTERPK 'PK_HBSS_PARAMETERCONFIG_L', 'T_HBSS_PARAMETERCONFIG_L', 'FPKID', '1';

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



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\HBSS_constraint.sql **/
