diff --git a/html/admin/sql/patch/upgrade20.sql b/html/admin/sql/patch/upgrade20.sql
index f72291183..a779be78b 100644
--- a/html/admin/sql/patch/upgrade20.sql
+++ b/html/admin/sql/patch/upgrade20.sql
@@ -99,6 +99,9 @@ CREATE or replace FUNCTION update_quick_code(njft_id integer, tav_text text) RET
end;
$body$
LANGUAGE plpgsql;
+
+
+update parm_periode set p_end = p_start where p_end is null;
alter table parm_periode alter p_end set not null;
create or replace function drop_it (p_constraint varchar)