Bug 18213: DB Update (facet order)
authorNick Clemens <nick@bywatersolutions.com>
Thu, 6 Jul 2017 09:41:31 +0000 (09:41 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 28 Mar 2019 15:57:32 +0000 (15:57 +0000)
Signed-off-by: Nicolas Legrand <nicolas.legrand@bulac.fr>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

installer/data/mysql/atomicupdate/bug18213.perl [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug18213.perl b/installer/data/mysql/atomicupdate/bug18213.perl
new file mode 100644 (file)
index 0000000..6f6ce54
--- /dev/null
@@ -0,0 +1,7 @@
+$DBversion = 'XXX';  # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do( "UPDATE search_field SET facet_order=10 WHERE name='ln'" );
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 18213 - Add language facets to Elasticsearch)\n";
+}