/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\PDM_constraint.sql **/
 EXEC P_ALTERPK 'PK_FMM_BOMSYNCFIELDCONFIG', 'T_FMM_BOMSYNCFIELDCONFIG', 'FID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_BOMSYNCFIELDCONFIG') CREATE INDEX IDX_FMM_BOMSYNCFIELDCONFIG ON T_FMM_BOMSYNCFIELDCONFIG ( FCREATETIME );
 
 EXEC P_ALTERPK 'PK_FMM_BOMSYNCFIELDCONFIG_L', 'T_FMM_BOMSYNCFIELDCONFIG_L', 'FPKID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_BOMSYNCFIELDCONFIG_L') CREATE INDEX IDX_FMM_BOMSYNCFIELDCONFIG_L ON T_FMM_BOMSYNCFIELDCONFIG_L (FID, FLOCALEID);
 
 EXEC P_ALTERPK 'PK_FMM_BOMSYNCFIELDENTRY', 'T_FMM_BOMSYNCFIELDENTRY', 'FENTRYID', '1';
 
 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_BOMSYNCFIELDENTRY') CREATE INDEX IDX_FMM_BOMSYNCFIELDENTRY ON T_FMM_BOMSYNCFIELDENTRY ( FID );

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