From 6dd95916e22da23af4cd90ec3e271f4fd6d0395f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2019 14:08:34 +0100 Subject: [PATCH] Bug 24263: DB changes Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- installer/data/mysql/atomicupdate/bug_24215.perl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_24215.perl diff --git a/installer/data/mysql/atomicupdate/bug_24215.perl b/installer/data/mysql/atomicupdate/bug_24215.perl new file mode 100644 index 0000000000..61a1915baf --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_24215.perl @@ -0,0 +1,10 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do( q| + UPDATE borowers SET relationship = NULL + WHERE relationship = "" + |); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 24215 - Replace relationship with NULL when "")\n"; +} -- 2.11.4.GIT