diff --git a/src/Tests/Update/DerUpdateTest.php b/src/Tests/Update/DerUpdateTest.php
index 3eae178..309da7b 100644
--- a/src/Tests/Update/DerUpdateTest.php
+++ b/src/Tests/Update/DerUpdateTest.php
@@ -35,6 +35,8 @@ class DerUpdateTest extends UpdatePathTestBase {
    * @see dynamic_entity_reference_update_8001()
    */
   public function testUpdate8001() {
+    // Cause 1071 Specified key was too long; max key length is 767 bytes.
+    \Drupal::database()->query('ALTER TABLE {entity_test__field_test} ROW_FORMAT=compact');
     $this->runUpdates();
     // The db dump contain two entity_test entities referencing one entity_test
     // entity and one entity_test_mul entity.
