Bugzilla – Attachment 123008 Details for
Bug 28633
Add a preferred_name field and an effective_name method to patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28633: DB Update
Bug-28633-DB-Update.patch (text/plain), 1.64 KB, created by
Nick Clemens
on 2021-07-21 11:14:50 UTC
(
hide
)
Description:
Bug 28633: DB Update
Filename:
MIME Type:
Creator:
Nick Clemens
Created:
2021-07-21 11:14:50 UTC
Size:
1.64 KB
patch
obsolete
>From 229c8972e50c550dcfb927d3b9734899fbf4d7f5 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 21 Jul 2021 10:42:35 +0000 >Subject: [PATCH] Bug 28633: DB Update > >--- > .../data/mysql/atomicupdate/bug_28633.perl | 28 +++++++++++++++++++ > 1 file changed, 28 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_28633.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_28633.perl b/installer/data/mysql/atomicupdate/bug_28633.perl >new file mode 100644 >index 0000000000..aaabcd10d9 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_28633.perl >@@ -0,0 +1,28 @@ >+$DBversion = 'XXX'; >+if( CheckVersion( $DBversion ) ) { >+ if( !column_exists( 'borrowers', 'preferredname' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE borrowers >+ ADD COLUMN preferredname longtext NULL DEFAULT NULL >+ COMMENT "patron/borrower's preferred name" >+ AFTER firstname >+ }); >+ } >+ if( !column_exists( 'deletedborrowers', 'preferredname' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE deletedborrowers >+ ADD COLUMN preferredname longtext NULL DEFAULT NULL >+ COMMENT "patron/borrower's preferred name" >+ AFTER firstname >+ }); >+ } >+ if( !column_exists( 'borrower_modifications', 'preferredname' ) ) { >+ $dbh->do(q{ >+ ALTER TABLE borrower_modifications >+ ADD COLUMN preferredname longtext NULL DEFAULT NULL >+ COMMENT "patron/borrower's preferred name" >+ AFTER firstname >+ }); >+ } >+ NewVersion( $DBversion, 28633, "Add preferredname to borrowers tables"); >+} >-- >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 28633
:
123008
|
123009
|
123010
|
123658
|
125497
|
125498
|
125499
|
125500
|
126591
|
128968
|
128969
|
128970
|
130000
|
130001
|
130002
|
133445
|
133446
|
133447
|
133448
|
133449
|
133450
|
133451
|
133958
|
133959
|
133960
|
133961
|
133962
|
133963
|
133964
|
133965