Compare commits

..

6 commits

Author SHA1 Message Date
rxu
868b5350f7
[ticket/17524] Fix tests
PHPBB-17524
2025-07-06 09:26:56 +07:00
rxu
967a7349da
[ticket/17524] Try not to hit MSSQL index key length limitations
900 bytes for a clustered index. 1,700 bytes for a nonclustered index.
For SQL Server 2014 (12.x) and earlier, all versions supported 900 bytes
for all index types.

PHPBB-17524
2025-07-06 01:39:58 +07:00
rxu
ffcd71ac87
[ticket/17524] Add test assertions
PHPBB-17524
2025-07-06 01:39:57 +07:00
rxu
c47e5d34df
[ticket/17524] Add index migrator tests
PHPBB-17524
2025-07-06 01:39:57 +07:00
rxu
418aa469d7
[ticket/17524] Add index data getter to db tools
PHPBB-17524
2025-07-06 01:39:56 +07:00
rxu
aef616381e
[ticket/17524] Add possibility to use index key length in migrations
PHPBB-17524
2025-07-06 01:39:16 +07:00

View file

@ -575,7 +575,7 @@ class migrator
$state['migration_data_state']['_total_time'] : 0.0;
$elapsed_time = microtime(true);
$steps = $migration->revert_data() ?: $this->helper->reverse_update_data($migration->update_data());
$steps = array_merge($this->helper->reverse_update_data($migration->update_data()), $migration->revert_data());
$result = $this->process_data_step($steps, $state['migration_data_state']);
$elapsed_time = microtime(true) - $elapsed_time;