create unique index un_options on options(profile,name);
insert into options(profile,name,value) select profile,name,value from new_options;
drop table new_options;
create unique index un_options on options(profile,name);
insert into options(profile,name,value) select profile,name,value from new_options;
drop table new_options;