From 75182b4ea24b7661df8a2111c53f63c133b675c0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 29 Jan 2021 15:16:35 +0100 Subject: [PATCH] Bug 25078: [POC] Lazy version This is the lazy, quick and dirty, version. We use a try catch block and execute the db entry in a transaction. When I error is found, we stop. The main problem is that we cannot do anything with the raw output in the template. --- installer/data/mysql/updatedatabase.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 67937bca52..b9c7041570 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -23465,7 +23465,7 @@ if( CheckVersion( $DBversion ) ) { $DBversion = '20.12.00.006'; if( CheckVersion( $DBversion ) ) { - execute_entry( $DBversion, 12345, "Testing die", + execute_entry( $DBversion, 12345, "Testing failure", sub { $dbh->do( q{ALTER TABLE foo} -- 2.20.1