Bug 12478 : Remove reference to deprecated table elasticsearch_mapping.sql
authorChris <chrisc@catalyst.net.nz>
Tue, 12 Apr 2016 20:42:53 +0000 (08:42 +1200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 26 Apr 2016 13:01:50 +0000 (10:01 -0300)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

installer/data/mysql/updatedatabase.pl

index e61de78..8f7960c 100755 (executable)
@@ -12258,16 +12258,6 @@ if ( $column_has_been_used ) {
 
 $DBversion = "XXX";
 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
-    my $installer = C4::Installer->new();
-    my $full_path = C4::Context->config('intranetdir') . "/installer/data/$installer->{dbms}/elasticsearch_mapping.sql";
-    my $error     = $installer->load_sql($full_path);
-    warn $error if $error;
-    print "Upgrade to $DBversion done (Bug 12478 - set up elasticsearch tables)\n";
-    SetVersion($DBversion);
-}
-
-$DBversion = "XXX";
-if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
     $dbh->do(q|
         ALTER TABLE search_marc_to_field DROP FOREIGN KEY search_marc_to_field_ibfk_1
     |);