From 85f84619a23144c23b464f9c6e748f9df66b1159 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Mon, 27 Nov 2023 11:48:00 +0000 Subject: [PATCH] Bug 35044: (QA Follow-up) Fix atomicupdate Was missing bug number and correct filename Was checking for the wrong unique key name, existing unique key name is 'field_record', not 'afv_fk' Signed-off-by: Martin Renvoize --- .../{atomic_additional_fields.pl => bug_35044.pl} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename installer/data/mysql/atomicupdate/{atomic_additional_fields.pl => bug_35044.pl} (93%) diff --git a/installer/data/mysql/atomicupdate/atomic_additional_fields.pl b/installer/data/mysql/atomicupdate/bug_35044.pl similarity index 93% rename from installer/data/mysql/atomicupdate/atomic_additional_fields.pl rename to installer/data/mysql/atomicupdate/bug_35044.pl index 7aadc781258..901f38e3be8 100755 --- a/installer/data/mysql/atomicupdate/atomic_additional_fields.pl +++ b/installer/data/mysql/atomicupdate/bug_35044.pl @@ -1,7 +1,7 @@ use Modern::Perl; return { - bug_number => "xxx", + bug_number => "35044", description => "Add repeatable option to additional_fields", up => sub { my ($args) = @_; @@ -17,7 +17,7 @@ return { say $out "Added repeatable column to additional_fields table"; } - if ( unique_key_exists ('additional_field_values', 'afv_fk') ) { + if ( unique_key_exists ('additional_field_values', 'field_record') ) { # Need to drop foreign key so that we can then drop the unique key $dbh->do( q{ -- 2.43.0