Compare commits

...

2 commits

Author SHA1 Message Date
rxu
2a9852fe55
Merge 4bdf5ab6d2 into 2fce8aeb3e 2025-06-10 14:33:57 +00:00
rxu
4bdf5ab6d2
[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
2025-06-10 21:33:24 +07:00

View file

@ -26,9 +26,9 @@ class phpbb_dbal_migration_schema extends \phpbb\db\migration\migration
'COLUMNS' => [ 'COLUMNS' => [
'module_id' => ['UINT:3', NULL, 'auto_increment'], 'module_id' => ['UINT:3', NULL, 'auto_increment'],
'user_id' => ['ULINT', 0], 'user_id' => ['ULINT', 0],
'endpoint' => ['TEXT', ''], 'endpoint' => ['VCHAR:220', ''],
'expiration_time' => ['TIMESTAMP', 0], 'expiration_time' => ['TIMESTAMP', 0],
'p256dh' => ['VCHAR', ''], 'p256dh' => ['VCHAR:200', ''],
'auth' => ['VCHAR:100', ''], 'auth' => ['VCHAR:100', ''],
], ],
'PRIMARY_KEY' => 'module_id', 'PRIMARY_KEY' => 'module_id',