From e37312c397e2ecf0fe29d95144eab05dd2e3fc59 Mon Sep 17 00:00:00 2001 From: rxu Date: Wed, 11 Jun 2025 09:57:08 +0700 Subject: [PATCH] [ticket/17524] Debug what's wrong PHPBB-17524 --- phpBB/phpbb/db/tools/doctrine.php | 2 +- tests/dbal/migration/schema.php | 4 ++-- tests/dbal/migrator_test.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/phpBB/phpbb/db/tools/doctrine.php b/phpBB/phpbb/db/tools/doctrine.php index 9cc8ed3f6f..3220fdddca 100644 --- a/phpBB/phpbb/db/tools/doctrine.php +++ b/phpBB/phpbb/db/tools/doctrine.php @@ -514,7 +514,7 @@ class doctrine implements tools_interface catch (Exception $e) { // @todo: check if it makes sense to properly handle the exception - return false; + return [$e->getMessage()]; } } diff --git a/tests/dbal/migration/schema.php b/tests/dbal/migration/schema.php index 04c20c46cb..b643bea0de 100644 --- a/tests/dbal/migration/schema.php +++ b/tests/dbal/migration/schema.php @@ -33,8 +33,8 @@ class phpbb_dbal_migration_schema extends \phpbb\db\migration\migration ], 'PRIMARY_KEY' => 'module_id', 'KEYS' => [ - 'i_simple' => ['INDEX', ['user_id', 'endpoint:191']], - 'i_uniq' => ['UNIQUE', ['expiration_time', 'p256dh(100)']], + // 'i_simple' => ['INDEX', ['user_id', 'endpoint:191']], + // 'i_uniq' => ['UNIQUE', ['expiration_time', 'p256dh(100)']], 'i_auth' => ['INDEX', 'auth'], ], ], diff --git a/tests/dbal/migrator_test.php b/tests/dbal/migrator_test.php index 6bd3854a67..aa648fd989 100644 --- a/tests/dbal/migrator_test.php +++ b/tests/dbal/migrator_test.php @@ -424,7 +424,7 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case $this->assertEmpty($index_data['options']['lengths'][0]); $this->assertEquals($mysql ? 191 : null, $index_data['options']['lengths'][1]); break; - case 'i_uniq': + /* case 'i_uniq': $this->assertEquals(['expiration_time', 'p256dh'], $index_data['columns']); $this->assertEmpty($index_data['flags']); $this->assertFalse($index_data['is_primary']); @@ -433,7 +433,7 @@ class phpbb_dbal_migrator_test extends phpbb_database_test_case $this->assertEquals(2, count($index_data['options']['lengths'])); $this->assertEmpty($index_data['options']['lengths'][0]); $this->assertEquals($mysql ? 100 : null, $index_data['options']['lengths'][1]); - break; + break;*/ case 'i_auth': $this->assertEquals(['auth'], $index_data['columns']); $this->assertEmpty($index_data['flags']);