Bugzilla – Attachment 139983 Details for
Bug 10950
Add pronoun field to patron record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10950: Database update
Bug-10950-Database-update.patch (text/plain), 4.76 KB, created by
ByWater Sandboxes
on 2022-08-30 17:00:48 UTC
(
hide
)
Description:
Bug 10950: Database update
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2022-08-30 17:00:48 UTC
Size:
4.76 KB
patch
obsolete
>From e9a8f9540c82dd40a9be46e74be7bf92009c77ea Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 9 Jun 2022 14:17:03 +0000 >Subject: [PATCH] Bug 10950: Database update > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> > >Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> >--- > .../data/mysql/atomicupdate/bug_10950.pl | 36 +++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 3 ++ > 2 files changed, 39 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_10950.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_10950.pl b/installer/data/mysql/atomicupdate/bug_10950.pl >new file mode 100644 >index 0000000000..cb8fdf72b3 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_10950.pl >@@ -0,0 +1,36 @@ >+use Modern::Perl; >+return { >+ bug_number => "10950", >+ description => "Add pronouns to borrowers table", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ if( !column_exists( 'borrowers', 'pronouns' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE borrowers >+ ADD COLUMN pronouns longtext NULL DEFAULT NULL >+ COMMENT "patron/borrower's pronouns" >+ AFTER initials >+ }); >+ say $out "Added pronouns column to borrowers table"; >+ } >+ if( !column_exists( 'deletedborrowers', 'pronouns' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE deletedborrowers >+ ADD COLUMN pronouns longtext NULL DEFAULT NULL >+ COMMENT "patron/borrower's pronouns" >+ AFTER initials >+ }); >+ say $out "Added pronouns column to deletedborrowers table"; >+ } >+ if( !column_exists( 'borrower_modifications', 'pronouns' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE borrower_modifications >+ ADD COLUMN pronouns longtext NULL DEFAULT NULL >+ COMMENT "patron/borrower's pronouns" >+ AFTER initials >+ }); >+ say $out "Added pronouns column to borrower_modifications table"; >+ } >+ }, >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index affa80e9c2..e8b672f6a6 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1280,6 +1280,7 @@ CREATE TABLE `borrower_modifications` ( > `title` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, > `othernames` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, > `initials` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, >+ `pronouns` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, > `streetnumber` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, > `streettype` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, > `address` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL, >@@ -1399,6 +1400,7 @@ CREATE TABLE `borrowers` ( > `title` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'patron/borrower''s title, for example: Mr. or Mrs.', > `othernames` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'any other names associated with the patron/borrower', > `initials` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'initials for your patron/borrower', >+ `pronouns` longtext COLLATE utfmb4_unicode_ci DEFAULT NULL COMMENT 'patron/borrower pronouns', > `streetnumber` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the house number for your patron/borrower''s primary address', > `streettype` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the street type (Rd., Blvd, etc) for your patron/borrower''s primary address', > `address` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the first address line for your patron/borrower''s primary address', >@@ -2544,6 +2546,7 @@ CREATE TABLE `deletedborrowers` ( > `title` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'patron/borrower''s title, for example: Mr. or Mrs.', > `othernames` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'any other names associated with the patron/borrower', > `initials` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'initials for your patron/borrower', >+ `pronouns` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'patron/borrower pronouns', > `streetnumber` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the house number for your patron/borrower''s primary address', > `streettype` tinytext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the street type (Rd., Blvd, etc) for your patron/borrower''s primary address', > `address` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'the first address line for your patron/borrower''s primary address', >-- >2.30.2
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 10950
:
135883
|
135886
|
135887
|
135890
|
135908
|
135909
|
135957
|
136037
|
136058
|
136059
|
136060
|
136061
|
136062
|
136063
|
136064
|
139606
|
139607
|
139608
|
139609
|
139610
|
139611
|
139612
|
139615
|
139616
|
139617
|
139618
|
139619
|
139620
|
139621
|
139908
|
139968
|
139983
|
139984
|
139985
|
139986
|
139987
|
139988
|
139989
|
139990
|
139991
|
141094
|
141095
|
141096
|
141097
|
141098
|
141099
|
141100
|
141101
|
141102
|
141103