From 4bdf5ab6d2b773829d93feb5f7dcf546d34f72a0 Mon Sep 17 00:00:00 2001 From: rxu Date: Tue, 10 Jun 2025 21:33:24 +0700 Subject: [PATCH] [ticket/17524] Do not hit MSSQL index key size limit of 900 bytes MSSQL index size limitations are 16 key columns and 900 bytes (prior to SQL Server 2016 (13.x)) and a maximum of 32 key columns and a maximum index key size of 1,700 bytes (as of SQL Server 2016 (13.x)). PHPBB-17524 --- tests/dbal/migration/schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/dbal/migration/schema.php b/tests/dbal/migration/schema.php index d91ed6a316..04c20c46cb 100644 --- a/tests/dbal/migration/schema.php +++ b/tests/dbal/migration/schema.php @@ -26,9 +26,9 @@ class phpbb_dbal_migration_schema extends \phpbb\db\migration\migration 'COLUMNS' => [ 'module_id' => ['UINT:3', NULL, 'auto_increment'], 'user_id' => ['ULINT', 0], - 'endpoint' => ['TEXT', ''], + 'endpoint' => ['VCHAR:220', ''], 'expiration_time' => ['TIMESTAMP', 0], - 'p256dh' => ['VCHAR', ''], + 'p256dh' => ['VCHAR:200', ''], 'auth' => ['VCHAR:100', ''], ], 'PRIMARY_KEY' => 'module_id',