From 20c22b5488cc2eeee8d2cec752818487d1533394 Mon Sep 17 00:00:00 2001 From: Andrew Fuerste Henry Date: Mon, 9 Dec 2024 19:38:50 +0000 Subject: [PATCH] Bug 38522: (follow-up) Edit db_rev and preserve comment Signed-off-by: Katrin Fischer (cherry picked from commit 1a4820322e528fdea4ac6dd212254ca3021d30a2) Signed-off-by: Paul Derscheid Signed-off-by: wainuiwitikapark --- .../mysql/atomicupdate/bug_38522_increase_field_length.pl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl b/installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl index 28a0b6a201..2502fdca5d 100755 --- a/installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl +++ b/installer/data/mysql/atomicupdate/bug_38522_increase_field_length.pl @@ -8,11 +8,7 @@ return { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; - # Do you stuffs here - $dbh->do(q{ALTER TABLE erm_agreements MODIFY COLUMN license_info mediumtext}); - - # Print useful stuff here - # tables - say $out "Set erm_agreements.license_info to type mediumtext."; + $dbh->do(q{ALTER TABLE erm_agreements MODIFY COLUMN license_info mediumtext DEFAULT NULL COMMENT 'info about the license'}); + say_success( $out, "Updated erm_agreements.license_info to mediumtext." ); }, };