Bugzilla – Attachment 125497 Details for
Bug 28633
Add a preferred name field 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), 2.09 KB, created by
Nick Clemens (kidclamp)
on 2021-09-30 12:55:43 UTC
(
hide
)
Description:
Bug 28633: DB Update
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2021-09-30 12:55:43 UTC
Size:
2.09 KB
patch
obsolete
>From 081bd7c3cb0b44aecd12de2a39d81fd46f63498d 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 | 39 +++++++++++++++++++ > 1 file changed, 39 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..2cb0cbcd8d >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_28633.perl >@@ -0,0 +1,39 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "28633", >+ description => "Add preferredname to borrowers table", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ 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 >+ }); >+ say $out "Add preferred name column to borrowers table"; >+ } >+ 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 >+ }); >+ say $out "Add preferred name column to deletedborrowers table"; >+ } >+ 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 >+ }); >+ say $out "Add preferred name column to borrower_modifications table"; >+ } >+ $dbh->do(q{}); >+ # Print useful stuff here >+ }, >+} >-- >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
|
166792
|
166793
|
166794
|
166813
|
166814
|
166815
|
166816
|
166817
|
167163
|
167164
|
173628
|
173629
|
173630
|
173631
|
173632
|
173633
|
173634
|
173664
|
173665
|
173666
|
173667
|
173668
|
173669
|
173670
|
173717
|
173718
|
173719
|
173813
|
173814
|
173815
|
173816
|
173826
|
173827
|
173828
|
173829
|
173930
|
173931
|
173932
|
173933
|
173934
|
173935
|
173936
|
174419
|
174420
|
174472
|
175177