Bug 9303 - DBrev 3.23.00.008
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
1167871402
commit
c66e7475f8
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 = "3.23.00.007";
|
||||
$VERSION = "3.23.00.008";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
ALTER TABLE borrowers ADD privacy_guarantor_checkouts BOOLEAN NOT NULL DEFAULT '0' AFTER privacy;
|
||||
|
||||
ALTER TABLE deletedborrowers ADD privacy_guarantor_checkouts BOOLEAN NOT NULL DEFAULT '0' AFTER privacy;
|
||||
|
||||
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type )
|
||||
VALUES (
|
||||
'AllowStaffToSetCheckoutsVisibilityForGuarantor', '0', NULL,
|
||||
'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.', 'YesNo'
|
||||
), (
|
||||
'AllowPatronToSetCheckoutsVisibilityForGuarantor', '0', NULL,
|
||||
'If enabled, the patron can set checkouts to be visible to his or her guarantor', 'YesNo'
|
||||
);
|
||||
|
|
@ -11556,6 +11556,28 @@ if ( CheckVersion($DBversion) ) {
|
|||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
$DBversion = "3.23.00.008";
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
|
||||
$dbh->do(q{ALTER TABLE borrowers ADD privacy_guarantor_checkouts BOOLEAN NOT NULL DEFAULT '0' AFTER privacy});
|
||||
|
||||
$dbh->do(q{ALTER TABLE deletedborrowers ADD privacy_guarantor_checkouts BOOLEAN NOT NULL DEFAULT '0' AFTER privacy});
|
||||
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type )
|
||||
VALUES (
|
||||
'AllowStaffToSetCheckoutsVisibilityForGuarantor', '0', NULL,
|
||||
'If enabled, library staff can set a patron''s checkouts to be visible to linked patrons from the opac.', 'YesNo'
|
||||
), (
|
||||
'AllowPatronToSetCheckoutsVisibilityForGuarantor', '0', NULL,
|
||||
'If enabled, the patron can set checkouts to be visible to his or her guarantor', 'YesNo'
|
||||
)
|
||||
});
|
||||
|
||||
print "Upgrade to $DBversion done (Bug 9303 - relative's checkouts in the opac)\n";
|
||||
SetVersion($DBversion);
|
||||
}
|
||||
|
||||
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
|
||||
# SEE bug 13068
|
||||
# if there is anything in the atomicupdate, read and execute it.
|
||||
|
|
|
|||
Loading…
Reference in New Issue