diff --git a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
index 8641fd3..99bac92 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php
@@ -696,6 +696,28 @@ function testSchemaChangeField() {
   }
 
   /**
+   * Tests changing columns shorten the index.
+   */
+  public function testSchemaChangeShortenIndex() {
+    $table_spec = [
+      'fields' => [
+        'f1' => [
+          'type' => 'int',
+        ],
+      ],
+      'indexes' => [
+        'test' => ['f1'],
+      ],
+    ];
+    db_create_table('test_table', $table_spec);
+    db_change_field('test_table', 'f1', 'f1', ['type' => 'varchar', 'length' => 191]);
+    db_change_field('test_table', 'f1', 'f1', ['type' => 'varchar', 'length' => 192]);
+    db_query('ALTER TABLE {test_table} ROW_FORMAT = COMPACT');
+    db_change_field('test_table', 'f1', 'f1', ['type' => 'varchar', 'length' => 191]);
+    db_change_field('test_table', 'f1', 'f1', ['type' => 'varchar', 'length' => 192]);
+  }
+
+  /**
    * Asserts that a field can be changed from one spec to another.
    *
    * @param $old_spec
