Bugzilla – Attachment 99792 Details for
Bug 24559
Elasticsearch - add support for 'year' fields
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24559: Database update
Bug-24559-Database-update.patch (text/plain), 1.28 KB, created by
Michal Denar
on 2020-02-28 19:39:46 UTC
(
hide
)
Description:
Bug 24559: Database update
Filename:
MIME Type:
Creator:
Michal Denar
Created:
2020-02-28 19:39:46 UTC
Size:
1.28 KB
patch
obsolete
>From 0cd708d125e6db8b4db6cce8a4d95a40c50a3b08 Mon Sep 17 00:00:00 2001 >From: Nick <nick@bywatersolutions.com> >Date: Fri, 28 Feb 2020 11:38:46 -0500 >Subject: [PATCH] Bug 24559: Database update > >Signed-off-by: Michal Denar <black23@gmail.com> >--- > installer/data/mysql/atomicupdate/bug_24559.perl | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_24559.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24559.perl b/installer/data/mysql/atomicupdate/bug_24559.perl >new file mode 100644 >index 0000000000..37c112a615 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24559.perl >@@ -0,0 +1,19 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do(q{ >+ ALTER TABLE search_field >+ MODIFY COLUMN type enum( >+ '', >+ 'string', >+ 'date', >+ 'year', >+ 'number', >+ 'boolean', >+ 'sum', >+ 'isbn', >+ 'stdno' >+ ) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'what type of data this holds, relevant when storing it in the search engine' >+ }); >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24559 - add year option to es types)\n"; >+} >-- >2.11.0
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 24559
:
99626
|
99785
|
99791
| 99792