From 7bea512da8b1c31e49a65872b41c5afc983d305a Mon Sep 17 00:00:00 2001 From: Andrew Moore Date: Wed, 26 Nov 2008 13:22:50 -0600 Subject: [PATCH] bug 2825: improving readability of output messages in updatedatabase.pl Two recent changes to updatedatabase.pl don't include newlines at the end of their status messages. This patch adds them. This is only useful if you're running this from the command line. Note: there is an opportunity here to extract some of the simlar logic from each of these blocks to a function. Signed-off-by: Galen Charlton --- installer/data/mysql/updatedatabase.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 5b78ad5da9..cba636a407 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -1995,7 +1995,7 @@ if ( C4::Context->preference('Version') < TransformToNum($DBversion) ) { ADD item_level_request tinyint(4) NOT NULL default 0 "); - print "Upgrade to $DBversion done (add hold_fill_targets table and a column to tmp_holdsqueue)"; + print "Upgrade to $DBversion done (add hold_fill_targets table and a column to tmp_holdsqueue)\n"; SetVersion($DBversion); } @@ -2031,7 +2031,7 @@ if ( C4::Context->preference('Version') < TransformToNum($DBversion) ) { print STDERR "After the upgrade to $DBversion, there are still $num_bad_issuedates loan(s) with a NULL (blank) loan date. ", "Please check the issues table in your database."; } - print "Upgrade to $DBversion done (bug 2582: set null issues.issuedate to lastreneweddate)"; + print "Upgrade to $DBversion done (bug 2582: set null issues.issuedate to lastreneweddate)\n"; SetVersion($DBversion); } -- 2.20.1