From 01ff2c94cf32f8415f5fafaa5c7ca5b0189831f0 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 25 Oct 2021 13:12:59 +0000 Subject: [PATCH] Bug 29246: Atomic update for db rev Content-Type: text/plain; charset=utf-8 --- installer/data/mysql/atomicupdate/bug_29246.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_29246.pl diff --git a/installer/data/mysql/atomicupdate/bug_29246.pl b/installer/data/mysql/atomicupdate/bug_29246.pl new file mode 100644 index 0000000000..4681a440fd --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_29246.pl @@ -0,0 +1,13 @@ +use Modern::Perl; + +return { + bug_number => 29246, + description => "Rename pref template and opacthemes", + up => sub { + my ($args) = @_; + my ($dbh, $out) = @$args{qw(dbh out)}; + my $sql = q|UPDATE systempreferences SET variable=? WHERE variable=?|; + $dbh->do( $sql, undef, 'opactheme', 'opacthemes'); + $dbh->do( $sql, undef, 'intranet_theme', 'template'); + }, +} -- 2.20.1