Unverified Commit d4e4f7c1 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3085192 by Wim Leers, focus13, grasmash: Add index on source_ids_hash...

Issue #3085192 by Wim Leers, focus13, grasmash: Add index on source_ids_hash for migrate_message_* tables

(cherry picked from commit f1c06e87)
parent 7d047b20
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -441,6 +441,7 @@ protected function ensureTables() {
          'description' => 'Messages generated during a migration process',
          'fields' => $fields,
          'primary key' => ['msgid'],
          'indexes' => [$this::SOURCE_IDS_HASH => [$this::SOURCE_IDS_HASH]],
        ];
        $this->getDatabase()->schema()->createTable($this->messageTableName(), $schema);
      }
+3 −0
Original line number Diff line number Diff line
@@ -109,6 +109,9 @@ public function testEnsureTablesNotExist() {
      'description' => 'Messages generated during a migration process',
      'fields' => $fields,
      'primary key' => ['msgid'],
      'indexes' => [
        'source_ids_hash' => ['source_ids_hash'],
      ],
    ];

    $schema = $this->getMockBuilder('Drupal\Core\Database\Schema')