diff --git a/html/admin/sql/patch/upgrade85.sql b/html/admin/sql/patch/upgrade85.sql
index 8c1794c10..2bff1e243 100644
--- a/html/admin/sql/patch/upgrade85.sql
+++ b/html/admin/sql/patch/upgrade85.sql
@@ -32,5 +32,5 @@ update attr_def set ad_type='text';
update attr_def set ad_type='numeric' where ad_id in (6,7,8,11,21,22);
update attr_def set ad_type='date' where ad_id in (10);
alter sequence s_attr_def restart with 9001;
-update version set val=85;
+update version set val=86;
commit;
diff --git a/html/admin/sql/patch/upgrade86.sql b/html/admin/sql/patch/upgrade86.sql
index 71cba574b..f91c77d18 100644
--- a/html/admin/sql/patch/upgrade86.sql
+++ b/html/admin/sql/patch/upgrade86.sql
@@ -176,6 +176,6 @@ CREATE TRIGGER t_jnt_fic_attr_ins
EXECUTE PROCEDURE comptaproc.jnt_fic_attr_ins();
-update version set val=86;
+update version set val=87;
commit;
diff --git a/include/constant.php b/include/constant.php
index c26cb21a0..e113801c8 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -32,7 +32,7 @@ $version_phpcompta=9000;
error_reporting (E_ALL|E_STRICT);
//$version_phpcompta=SVNVERSION;
-define ("DBVERSION",86);
+define ("DBVERSION",87);
define ("DBVERSIONREPO",12);
define ('NOTFOUND','--not found--');