mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 04:18:55 +00:00
Compare commits
1 commit
be3438d573
...
2a9852fe55
Author | SHA1 | Date | |
---|---|---|---|
|
2a9852fe55 |
3 changed files with 5 additions and 5 deletions
|
@ -514,7 +514,7 @@ class doctrine implements tools_interface
|
|||
catch (Exception $e)
|
||||
{
|
||||
// @todo: check if it makes sense to properly handle the exception
|
||||
return [$e->getMessage()];
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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'],
|
||||
],
|
||||
],
|
||||
|
|
|
@ -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']);
|
||||
|
|
Loading…
Add table
Reference in a new issue