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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_CERTHISTORY_FGRPID') CREATE INDEX IDX_HBSS_CERTHISTORY_FGRPID ON T_HBSS_CERTHISTORYINFO ( FGROUPID );


 EXEC P_ALTERPK 'PK_HBSS_CERTINFO', 'T_HBSS_CERTINFO', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_HBSS_CERTINFO_FGROUPID') CREATE INDEX IDX_HBSS_CERTINFO_FGROUPID ON T_HBSS_CERTINFO ( FGROUPID );



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