Bug 7470 follow-up DBRev + removing `

This commit is contained in:
Paul Poulain 2012-03-26 14:51:43 +02:00
parent f35a1cce68
commit 32ac3f673e
2 changed files with 14 additions and 14 deletions

View File

@ -5062,27 +5062,27 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$DBversion = "3.07.00.039";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do( qq{INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('Babeltheque_url_js','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js','','Free')} );
$dbh->do( qq{CREATE TABLE IF NOT EXISTS `social_data`
( `isbn` VARCHAR(30),
`num_critics` INT,
`num_critics_pro` INT,
`num_quotations` INT,
`num_videos` INT,
`score_avg` DECIMAL(5,2),
`num_scores` INT,
PRIMARY KEY (`isbn`)
$dbh->do( qq{INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('Babeltheque_url_js','','Url for Babeltheque javascript (e.g. http://www.babeltheque.com/bw_XX.js','','Free')} );
$dbh->do( qq{CREATE TABLE IF NOT EXISTS social_data
( isbn VARCHAR(30),
num_critics INT,
num_critics_pro INT,
num_quotations INT,
num_videos INT,
score_avg DECIMAL(5,2),
num_scores INT,
PRIMARY KEY (isbn)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
} );
$dbh->do( qq{INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('Babeltheque_url_update', '', 'Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)', '', 'Free')} );
$dbh->do( qq{INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES ('Babeltheque_url_update', '', 'Url for Babeltheque update (E.G. http://www.babeltheque.com/.../file.csv.bz2)', '', 'Free')} );
print "Upgrade to $DBversion done (added syspref and table for babeltheque (Babeltheque_url_js, babeltheque))\n";
SetVersion($DBversion);
}
$DBversion = "3.07.00.040";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
$dbh->do( qq{INSERT IGNORE INTO `systempreferences` (variable,value,explanation,options,type) VALUES('SocialNetworks','1','Enable/Disable social networks links in opac detail','','YesNo')} );
print "Upgrade to $DBversion done (added syspref Social_networks)\n";
$dbh->do( qq{INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('SocialNetworks','0','Enable/Disable social networks links in opac detail','','YesNo')} );
print "Upgrade to $DBversion done (added syspref SocialNetworks, to display facebook/ggl+ and other buttons)\n";
SetVersion($DBversion);
}

View File

@ -16,7 +16,7 @@ the kohaversion is divided in 4 parts :
use strict;
sub kohaversion {
our $VERSION = '3.07.00.038';
our $VERSION = '3.07.00.040';
# version needs to be set this way
# so that it can be picked up by Makefile.PL
# during install