/**Begin E:\NextERP_PDM\PDM_UPGRADE\PDMS\branch_lastest\pdm\FMM_table.sql **/

EXEC P_ALTERPK 'PK_FMM_BOMWORKSTATION', 'T_FMM_BOMWORKSTATION', 'FDETAILID', '1';

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

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