diff --git a/html/admin/sql/patch/upgrade7.sql b/html/admin/sql/patch/upgrade7.sql
new file mode 100644
index 000000000..feff7a979
--- /dev/null
+++ b/html/admin/sql/patch/upgrade7.sql
@@ -0,0 +1,10 @@
+begin;
+-- banque n'a pas de gestion stock
+delete from jnt_fic_attr where fd_id=1 and ad_id=19;
+-- client n'a pas de gestion stock
+delete from jnt_fic_attr where fd_id=2 and ad_id=19;
+-- default periode for phpcompta
+ update user_pref set pref_periode=40 where pref_user='phpcompta';
+-- version 8
+update version set val=8;
+commit;