Bug 15485 - DBRev 16.06.00.004

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2016-06-24 13:32:35 +00:00
parent 609f537128
commit 54451b66a1
3 changed files with 19 additions and 27 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "16.06.00.003";
$VERSION = "16.06.00.004";
sub version {
return $VERSION;

View File

@ -1,26 +0,0 @@
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
FROM systempreferences WHERE variable='XSLTResultsDisplay';
-- $DBversion = '16.06.00.XXX';
-- if ( CheckVersion($DBversion) ) {
-- $dbh->do(q{
-- INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
-- SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
-- FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
-- });
-- $dbh->do(q{
-- INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
-- SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
-- FROM systempreferences WHERE variable='XSLTResultsDisplay';
-- });
-- print "Upgrade to $DBversion done (Bug 15485: Allow choosing different XSLTs for lists)\n";
-- SetVersion($DBversion);
-- }

View File

@ -12655,6 +12655,24 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = '16.06.00.004';
if ( CheckVersion($DBversion) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
SELECT 'OPACXSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on OPAC', 'Free'
FROM systempreferences WHERE variable='OPACXSLTResultsDisplay';
});
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( variable, value, options, explanation, type )
SELECT 'XSLTListsDisplay', COALESCE(value,''), '', 'Enable XSLT stylesheet control over lists pages display on intranet', 'Free'
FROM systempreferences WHERE variable='XSLTResultsDisplay';
});
print "Upgrade to $DBversion done (Bug 15485: Allow choosing different XSLTs for lists)\n";
SetVersion($DBversion);
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068