/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FMM_constraint.sql **/
 EXEC P_ALTERPK 'PK_FMM_PROMODEDEFINE', 'T_FMM_PROMODEDEFINE', 'FID', '1';

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


 EXEC P_ALTERPK 'PK_FMM_PROMODEDEFINE_L', 'T_FMM_PROMODEDEFINE_L', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_PROMDL_FID') CREATE INDEX IDX_FMM_PROMDL_FID ON T_FMM_PROMODEDEFINE_L ( FID ,FLOCALEID );


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