From 207d9e2be3ad5ae5adefec94fa1c76624b2f27cf Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 29 Oct 2014 20:50:36 -0300 Subject: [PATCH] Bug 11346: DBRev 3.17.00.41 (deprecate the PROG and CCSR themes) Signed-off-by: Tomas Cohen Arazi --- installer/data/mysql/updatedatabase.pl | 17 ++++++++++++----- kohaversion.pl | 2 +- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 29257a8d66..daca3d5fb3 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -8890,35 +8890,36 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } -$DBversion = "3.17.00.XXX"; +$DBversion = "3.17.00.036"; if ( CheckVersion($DBversion) ) { $dbh->do("DELETE FROM systempreferences WHERE variable='OpacShowLibrariesPulldownMobile'"); print "Upgrade to $DBversion done ( Bug 12513 - PROG/CCSR deprecation: Remove OpacShowLibrariesPulldownMobile system preference )\n"; SetVersion ($DBversion); } -$DBversion = "3.17.00.XXX"; +$DBversion = "3.17.00.037"; if ( CheckVersion($DBversion) ) { $dbh->do("DELETE FROM systempreferences WHERE variable='OpacMainUserBlockMobile'"); print "Upgrade to $DBversion done ( Bug 12246 - PROG/CCSR deprecation: Remove OpacMainUserBlockMobile system preference )\n"; SetVersion ($DBversion); } -$DBversion = "3.17.00.XXX"; +$DBversion = "3.17.00.038"; if ( CheckVersion($DBversion) ) { $dbh->do("DELETE FROM systempreferences WHERE variable='OPACMobileUserCSS'"); print "Upgrade to $DBversion done ( Bug 12245 - PROG/CCSR deprecation: Remove OPACMobileUserCSS system preference )\n"; SetVersion ($DBversion); } -$DBversion = "3.17.00.XXX"; +$DBversion = "3.17.00.039"; if ( CheckVersion($DBversion) ) { $dbh->do("INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes')"); print "Upgrade to $DBversion done (Bug 12539 - PROG/CCSR deprecation: Remove hardcoded theme from C4/Templates.pm)\n"; SetVersion ($DBversion); +} -$DBversion = "3.17.00.XXX"; +$DBversion = "3.17.00.040"; if ( CheckVersion($DBversion) ) { my $opac_theme = C4::Context->preference( 'opacthemes' ); if ( $opac_theme eq 'prog' || $opac_theme eq 'ccsr' ) { @@ -8928,6 +8929,12 @@ if ( CheckVersion($DBversion) ) { SetVersion($DBversion); } +$DBversion = "3.17.00.041"; +if ( CheckVersion($DBversion) ) { + print "Upgrade to $DBversion done (Bug 11346: Deprecate the 'prog' and 'CCSR' themes)\n"; + SetVersion($DBversion); +} + =head1 FUNCTIONS =head2 TableExists($table) diff --git a/kohaversion.pl b/kohaversion.pl index 37e8b389f4..6ca2d83e40 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts : use strict; sub kohaversion { - our $VERSION = '3.17.00.035'; + our $VERSION = '3.17.00.041'; # version needs to be set this way # so that it can be picked up by Makefile.PL # during install -- 2.39.5