From f3f8e04427af4bc65a968029213495cd893a85f5 Mon Sep 17 00:00:00 2001
From: "florian.azizian" <florian.azizian@maarch.org>
Date: Fri, 4 Dec 2020 15:22:27 +0100
Subject: [PATCH] FIX #15338 TIME 0:03 total_errors must not be null in
 history_batch

---
 migration/21.04/2104.sql | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/migration/21.04/2104.sql b/migration/21.04/2104.sql
index c59f7502adf..ddc747c6258 100644
--- a/migration/21.04/2104.sql
+++ b/migration/21.04/2104.sql
@@ -24,3 +24,5 @@ CREATE TABLE attachment_types
     CONSTRAINT attachment_types_unique_key UNIQUE (type_id)
 )
 WITH (OIDS=FALSE);
+
+UPDATE history_batch SET total_errors = 0 WHERE total_errors IS NULL;
-- 
GitLab