[Koha-patches] [PATCH] fix DBrev messages in updatedatabase.pl
Ryan Higgins
ryan.higgins at liblime.com
Sat May 23 00:16:49 CEST 2009
++ ! ... I recall being pretty confused when running updatedatabase on these
occasions. Developers, please be verbose in describing what's being
done by updatedatabase.
Anyone who is running this script will have a keen interest in what it
is doing so s/he can watch for errors.
On Fri, May 22, 2009 at 11:45 AM, Galen Charlton
<galen.charlton at liblime.com> wrote:
> 021 - added change description
> 034 - corrected change description
> ---
> installer/data/mysql/updatedatabase.pl | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl
> index 71340c1..09af52b 100755
> --- a/installer/data/mysql/updatedatabase.pl
> +++ b/installer/data/mysql/updatedatabase.pl
> @@ -2320,6 +2320,7 @@ $DBversion = "3.01.00.021";
> if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
> my $enable_reviews = C4::Context->preference('OPACAmazonEnabled') ? '1' : '0';
> $dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OPACAmazonReviews', '$enable_reviews', 'Display Amazon readers reviews on OPAC','','YesNo')");
> + print "Upgrade to $DBversion done (adding OPACAmazonReviews syspref)\n";
> SetVersion ($DBversion);
> }
>
> @@ -2433,7 +2434,7 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
> $DBversion = "3.01.00.034";
> if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
> $dbh->do("ALTER TABLE `subscription` ADD COLUMN `graceperiod` INT(11) NOT NULL default '0';");
> - print "Upgrade to $DBversion done (Adding a field in issuingrules table)\n";
> + print "Upgrade to $DBversion done (Adding graceperiod column to subscription table)\n";
> SetVersion ($DBversion);
> }
>
> --
> 1.5.6.5
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>
--
Ryan Higgins
LibLime * Open-Source Solutions for Libraries
Featuring KohaZOOM ILS
888-564-2457 x704
More information about the Koha-patches
mailing list