Make WordPress Core

Ticket #41716: 41716.1.diff

File 41716.1.diff, 597 bytes (added by danielbachhuber, 7 years ago)

Add ROW_FORMAT=DYNAMIC to CREATE TABLE query

  • tests/phpunit/tests/dbdelta.php

    diff --git a/tests/phpunit/tests/dbdelta.php b/tests/phpunit/tests/dbdelta.php
    index ecf7c8a294..ecd92ddca3 100644
    a b class Tests_dbDelta extends WP_UnitTestCase { 
    363363
    364364                $table_name = 'test_truncated_index';
    365365
    366                 $create = "CREATE TABLE $table_name (\n a varchar(255) COLLATE utf8mb4_unicode_ci,\n KEY a (a)\n)";
     366                $create = "CREATE TABLE $table_name (\n a varchar(255) COLLATE utf8mb4_unicode_ci,\n KEY a (a)\n) ROW_FORMAT=DYNAMIC";
    367367                $wpdb->query( $create );
    368368
    369369                $actual = dbDelta( $create, false );