Bug 38522: (follow-up) Edit db_rev and preserve comment

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 1a4820322e)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: wainuiwitikapark <wainuiwitikapark@catalyst.net.nz>
This commit is contained in:
Andrew Fuerste Henry 2024-12-09 19:38:50 +00:00 committed by wainuiwitikapark
parent 789e57210b
commit 20c22b5488
1 changed files with 2 additions and 6 deletions

View File

@ -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." );
},
};