/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\EB_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_EB_BIZRULEGROUP', 'T_EB_BIZRULEGROUP', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_BIZRULEGROUP_MO') CREATE INDEX IDX_EB_BIZRULEGROUP_MO ON T_EB_BIZRULEGROUP ( FMODEL );


 EXEC P_ALTERPK 'PK_T_EB_BIZRULEGROUPDIS', 'T_EB_BIZRULEGROUPDIS', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_BIZRULEGROUPDIS_MO') CREATE INDEX IDX_EB_BIZRULEGROUPDIS_MO ON T_EB_BIZRULEGROUPDIS ( FMODEL );






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