Bug 17047: DBRev 18.12.00.008
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
17575dfccb
commit
54dff5c944
2
Koha.pm
2
Koha.pm
|
|
@ -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 = "18.12.00.007";
|
||||
$VERSION = "18.12.00.008";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,13 +0,0 @@
|
|||
$DBversion = 'XXX';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
if( !column_exists( 'subscription', 'mana_id' ) ) {
|
||||
$dbh->do( "ALTER TABLE subscription ADD mana_id int(11) NULL DEFAULT NULL" );
|
||||
}
|
||||
|
||||
if( !column_exists( 'saved_sql', 'mana_id' ) ) {
|
||||
$dbh->do( "ALTER TABLE saved_sql ADD mana_id int(11) NULL DEFAULT NULL" );
|
||||
}
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 17047 - Add column mana_id in subscription and saved_sql tables)\n";
|
||||
}
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
||||
('Mana','2',NULL,'request to Mana Webservice. Mana centralize common information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana.','YesNo');
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
||||
('AutoShareWithMana','','','defines datas automatically shared with mana','multiple');
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
||||
('ManaToken','',NULL,'Security token used for authentication on Mana KB service (anti spam)','Textarea');
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
$DBversion = 'XXX';
|
||||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
# you can use $dbh here like:
|
||||
# $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" );
|
||||
|
|
|
|||
|
|
@ -17244,6 +17244,31 @@ if( CheckVersion( $DBversion ) ) {
|
|||
print "Upgrade to $DBversion done (Bug 21753: Drop chargename from issuingrules )\n";
|
||||
}
|
||||
|
||||
$DBversion = '18.12.00.008';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
if( !column_exists( 'subscription', 'mana_id' ) ) {
|
||||
$dbh->do( "ALTER TABLE subscription ADD mana_id int(11) NULL DEFAULT NULL" );
|
||||
}
|
||||
|
||||
if( !column_exists( 'saved_sql', 'mana_id' ) ) {
|
||||
$dbh->do( "ALTER TABLE saved_sql ADD mana_id int(11) NULL DEFAULT NULL" );
|
||||
}
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
||||
('Mana','2',NULL,'request to Mana Webservice. Mana centralize common information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana.','YesNo');
|
||||
});
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
||||
('AutoShareWithMana','','','defines datas automatically shared with mana','multiple');
|
||||
});
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
||||
('ManaToken','',NULL,'Security token used for authentication on Mana KB service (anti spam)','Textarea');
|
||||
});
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 17047 - Mana knowledge base)\n";
|
||||
}
|
||||
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue