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

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_BIZRULE_CATALOG') CREATE INDEX IDX_EB_BIZRULE_CATALOG ON T_EB_BIZRULE ( FMODELID ,FCATALOGID );


 EXEC P_ALTERPK 'PK_T_EB_REPORTCATALOG', 'T_EB_REPORTCATALOG', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_RPTCATALOG_MODELID') CREATE INDEX IDX_EB_RPTCATALOG_MODELID ON T_EB_REPORTCATALOG ( FMODELID );


 EXEC P_ALTERPK 'PK_T_EB_REPORTCATALOG_L', 'T_EB_REPORTCATALOG_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_EB_CATALOG_L_ID') CREATE INDEX IDX_EB_CATALOG_L_ID ON T_EB_REPORTCATALOG_L ( FID );



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