Bug 22887: (RM follow-up) Restore warnings in updatedatabase

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2020-04-17 10:20:27 +01:00
parent 0e9d45e7b4
commit 2b7ac72d70
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -21588,6 +21588,9 @@ if( CheckVersion( $DBversion ) ) {
$_->{authorised_value}, $_->{c}
} @$duplicates
);
for my $warning (@description) {
warn $warning;
}
} else {
$dbh->do( q{ALTER TABLE `authorised_values` ADD CONSTRAINT `av_uniq` UNIQUE (category, authorised_value)} );
}