/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\BCM_constraint.sql **/
 EXEC P_ALTERPK 'PK_T_BCM_ACCOUNTINGENTITY', 'T_BCM_ACCOUNTINGENTITY', 'FID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'T_BCM_ACCOUNTINGENTITY_NUM') CREATE INDEX T_BCM_ACCOUNTINGENTITY_NUM ON T_BCM_ACCOUNTINGENTITY ( FNUMBER );


 EXEC P_ALTERPK 'PK_T_BCM_ACCOUNTINGENTITY_L', 'T_BCM_ACCOUNTINGENTITY_L', 'FPKID', '1';

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



/**End E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest(平台_业务)\pdm\BCM_constraint.sql **/
