/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FMM_constraint.sql **/
 EXEC P_ALTERPK 'PK_FMM_OVERHAULENTRYCUST', 'T_FMM_OVERHAULENTRYCUST', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_OVERHAULENTRYCUST') CREATE INDEX IDX_FMM_OVERHAULENTRYCUST ON T_FMM_OVERHAULENTRYCUST ( FENTRYID );


 EXEC P_ALTERPK 'PK_FMM_OVERHAULENTRYFM', 'T_FMM_OVERHAULENTRYFM', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_OVERHAULENTRYFM') CREATE INDEX IDX_FMM_OVERHAULENTRYFM ON T_FMM_OVERHAULENTRYFM ( FENTRYID );


 EXEC P_ALTERPK 'PK_FMM_OVERHAULENTRYCHECK', 'T_FMM_OVERHAULENTRYCHECK', 'FPKID', '1';

 IF NOT EXISTS (SELECT 1 FROM KSQL_INDEXES WHERE KSQL_INDNAME = 'IDX_FMM_OVERHAULENTRYCHECK') CREATE INDEX IDX_FMM_OVERHAULENTRYCHECK ON T_FMM_OVERHAULENTRYCHECK ( FENTRYID );



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