alter table bomdet add line_no number(3) not null;
alter table bomdet drop constraint BOMDET_PK;
alter table bomdet add constraint BOMDET_PK primary key(bom_code,line_no);
CREATE UNIQUE INDEX BOMDET_UI ON BOMDET (BOM_CODE , ITEM_CODE , ITEM_REF ) ;
