Bugzilla – Attachment 81342 Details for
Bug 11297
Add support for custom PQF attributes for Z39.50 server searches
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11297: (QA follow-up) Make the database update script idempotent
Bug-11297-QA-follow-up-Make-the-database-update-sc.patch (text/plain), 1.77 KB, created by
Martin Renvoize (ashimema)
on 2018-10-27 07:02:52 UTC
(
hide
)
Description:
Bug 11297: (QA follow-up) Make the database update script idempotent
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-10-27 07:02:52 UTC
Size:
1.77 KB
patch
obsolete
>From 6b442df3683e9f370be7065f813d21a43235ae60 Mon Sep 17 00:00:00 2001 >From: Charles Farmer <charles.farmer@inLibro.com> >Date: Fri, 26 Oct 2018 14:32:25 -0400 >Subject: [PATCH] Bug 11297: (QA follow-up) Make the database update script > idempotent > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > .../atomicupdate/Bug11297_z3950servers_attributes.perl | 9 +++++++++ > .../atomicupdate/Bug11297_z3950servers_attributes.sql | 1 - > 2 files changed, 9 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.perl > delete mode 100644 installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.sql > >diff --git a/installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.perl b/installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.perl >new file mode 100644 >index 0000000000..2250a26cff >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.perl >@@ -0,0 +1,9 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ if( !column_exists( 'z3950servers', 'attributes' ) ) { >+ $dbh->do( "ALTER TABLE z3950servers ADD COLUMN attributes VARCHAR(255) after add_xslt" ); >+ } >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 11297 - Add support for custom PQF attributes for Z39.50 server searches)\n"; >+} >diff --git a/installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.sql b/installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.sql >deleted file mode 100644 >index a4e56e5501..0000000000 >--- a/installer/data/mysql/atomicupdate/Bug11297_z3950servers_attributes.sql >+++ /dev/null >@@ -1 +0,0 @@ >- ALTER TABLE z3950servers ADD COLUMN attributes VARCHAR(255) after add_xslt; >-- >2.19.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 11297
:
23144
|
23145
|
40829
|
40889
|
48649
|
50415
|
50416
|
50420
|
50954
|
59448
|
62938
|
62939
|
70190
|
70191
|
70192
|
70193
|
70194
|
70195
|
70196
|
71992
|
71993
|
71994
|
72061
|
72062
|
72063
|
77718
|
77719
|
77720
|
77721
|
77722
|
77723
|
78294
|
78295
|
78296
|
78297
|
80372
|
80496
|
80497
|
80498
|
80499
|
81328
|
81342
|
81343
|
81344
|
81345
|
81346
|
92719
|
92720
|
92721
|
92722
|
98598
|
98599
|
98600
|
98601
|
99227
|
99228
|
99229
|
99230
|
99231