Bugzilla – Attachment 137421 Details for
Bug 30933
Add a designated owner for shared and public lists at patron deletion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30933: Database revision (new pref)
Bug-30933-Database-revision-new-pref.patch (text/plain), 3.05 KB, created by
Martin Renvoize (ashimema)
on 2022-07-08 14:05:37 UTC
(
hide
)
Description:
Bug 30933: Database revision (new pref)
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-07-08 14:05:37 UTC
Size:
3.05 KB
patch
obsolete
>From 769b6b8b2c18e60cca67ac9fadcc1202bf1c5b6e Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Tue, 21 Jun 2022 11:29:09 +0000 >Subject: [PATCH] Bug 30933: Database revision (new pref) > >Adds pref ListOwnerDesignated. >Generalize description of ListOwnershipUponPatronDeletion a bit. > >Test plan: >Run updatedatabase. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > installer/data/mysql/atomicupdate/bug_30933.pl | 18 ++++++++++++++++++ > installer/data/mysql/mandatory/sysprefs.sql | 3 ++- > 2 files changed, 20 insertions(+), 1 deletion(-) > create mode 100755 installer/data/mysql/atomicupdate/bug_30933.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30933.pl b/installer/data/mysql/atomicupdate/bug_30933.pl >new file mode 100755 >index 0000000000..5041522b2d >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30933.pl >@@ -0,0 +1,18 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => 30933, >+ description => "Add pref ListOwnerDesignated", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) >+VALUES ('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free') >+ }); >+ $dbh->do(q{ >+UPDATE systempreferences SET explanation='Defines the action on their public or shared lists when patron is deleted' >+WHERE variable = 'ListOwnershipUponPatronDeletion' >+ }); >+ }, >+}; >diff --git a/installer/data/mysql/mandatory/sysprefs.sql b/installer/data/mysql/mandatory/sysprefs.sql >index 845839364a..c61c2b1bc3 100644 >--- a/installer/data/mysql/mandatory/sysprefs.sql >+++ b/installer/data/mysql/mandatory/sysprefs.sql >@@ -324,7 +324,8 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('LinkerModule','Default','Default|FirstMatch|LastMatch','Chooses which linker module to use (see documentation).','Choice'), > ('LinkerOptions','','','A pipe-separated list of options for the linker.','free'), > ('LinkerRelink','1',NULL,'If ON the authority linker will relink headings that have previously been linked every time it runs.','YesNo'), >-('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'When deleting a patron who owns public lists, either delete the public lists or transfer ownership to the patron who deleted the owner', 'Choice'), >+('ListOwnerDesignated', NULL, NULL, 'Designated list owner at patron deletion', 'Free'), >+('ListOwnershipUponPatronDeletion', 'delete', 'delete|transfer', 'Defines the action on their public or shared lists when patron is deleted', 'Choice'), > ('LoadSearchHistoryToTheFirstLoggedUser', '1', NULL, 'If ON, the next user will automatically get the last searches in their history', 'YesNo'), > ('LocalCoverImages','0','1','Display local cover images on intranet details pages.','YesNo'), > ('LocalHoldsPriority', '0', NULL, 'Enables the LocalHoldsPriority feature', 'YesNo'), >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30933
:
136420
|
136421
|
136422
|
136423
|
136424
|
137241
|
137242
|
137243
|
137244
|
137245
|
137421
|
137422
|
137423
|
137424
|
137425
|
137879
|
137880
|
137906
|
137907
|
137909
|
137910
|
137911
|
137912
|
137913
|
137914
|
137915
|
137916
|
137917