From 244ab872ce8651cc3bf5c9840969a8948c2c9ca9 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' --- .../{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 7aadc78125..901f38e3be 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.30.2