From 051aaa57766bebc5706057de76ca3f754f04bc29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Nyl=C3=A9n?= Date: Tue, 14 Dec 2021 08:34:48 +0000 Subject: [PATCH] Bug 27208: Atomicupdate --- .../bug_27208-add_delay_util_to_message_queue.pl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 installer/data/mysql/atomicupdate/bug_27208-add_delay_util_to_message_queue.pl diff --git a/installer/data/mysql/atomicupdate/bug_27208-add_delay_util_to_message_queue.pl b/installer/data/mysql/atomicupdate/bug_27208-add_delay_util_to_message_queue.pl new file mode 100755 index 0000000000..e2235100e0 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_27208-add_delay_util_to_message_queue.pl @@ -0,0 +1,16 @@ +use Modern::Perl; + +return { + bug_number => "27208", + description => "Adding new column 'message_queue.delay_until'", + up => sub { + my ($args) = @_; + my $dbh = $args->{dbh}; + + if( !column_exists( 'message_queue', 'delay_until' ) ) { + $dbh->do(q{ + ALTER TABLE message_queue ADD COLUMN `delay_until` TIMESTAMP NULL DEFAULT NULL AFTER `failure_code` + }); + } + }, +} -- 2.20.1