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

 EXEC P_ALTERPK 'PK_T_EB_BIZRULECALLOG', 'T_EB_BIZRULECALLOG', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_T_EB_BIZRULETEMPLATEDIS', 'T_EB_BIZRULETEMPLATEDIS', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_BIZRULETEMPLATEDIS') CREATE INDEX IDX_EB_BIZRULETEMPLATEDIS ON T_EB_BIZRULETEMPLATEDIS ( FTEMPLATEID );



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