Bug 9303 - DBrev 3.23.00.008

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2015-12-31 13:14:57 +00:00
parent 1167871402
commit c66e7475f8
3 changed files with 23 additions and 13 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 = "3.23.00.007";
$VERSION = "3.23.00.008";
sub version {
return $VERSION;

View File

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

View File

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