Bug 11346: DBRev 3.17.00.41 (deprecate the PROG and CCSR themes)

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Tomás Cohen Arazi 2014-10-29 20:50:36 -03:00
parent 4a788d4e41
commit 207d9e2be3
2 changed files with 13 additions and 6 deletions

View file

@ -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)

View file

@ -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