diff --git a/html/admin/sql/patch/upgrade92.sql b/html/admin/sql/patch/upgrade92.sql
index bafabe10c..5bfe7573c 100644
--- a/html/admin/sql/patch/upgrade92.sql
+++ b/html/admin/sql/patch/upgrade92.sql
@@ -6,5 +6,9 @@ insert into attr_def(ad_id,ad_text,ad_type,ad_size) values (52,'Contrepartie po
insert into attr_def(ad_id,ad_text,ad_type,ad_size) values (53,'Contrepartie pour dépense fiscal. non déd.','poste',22);
update jrn_def set jrn_def_code=substr(jrn_def_code,1,1)||substr(jrn_def_code,length(jrn_def_code)-1,length(jrn_def_code));
+create unique index qs_j_id on quant_sold(j_id);
+create unique index qp_j_id on quant_purchase(j_id);
+create unique index qf_jr_id on quant_fin(jr_id);
+
update version set val=93;
commit;