Skip to content

Commit 05495dd

Browse files
authored
refactor: Add synchronous option for SQLite tests (#9717)
* refactor: Add `synchronous` option for SQLite tests * refactor: Add `synchronous` option for SQLite tests in `Config\Database` * docs: Update userguide
1 parent d771d58 commit 05495dd

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

app/Config/Database.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ class Database extends Config
182182
'port' => 3306,
183183
'foreignKeys' => true,
184184
'busyTimeout' => 1000,
185+
'synchronous' => null,
185186
'dateFormat' => [
186187
'date' => 'Y-m-d',
187188
'datetime' => 'Y-m-d H:i:s',

tests/_support/Config/Registrar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class Registrar
8383
'failover' => [],
8484
'port' => 3306,
8585
'foreignKeys' => true,
86+
'synchronous' => 0,
8687
],
8788
'SQLSRV' => [
8889
'DSN' => '',

user_guide_src/source/changelogs/v4.6.4.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Message Changes
2222
Changes
2323
*******
2424

25+
- **Config:** Added the ``synchronous`` key for ``Config\Database::$tests``. For SQLite3 driver only.
26+
2527
************
2628
Deprecations
2729
************

user_guide_src/source/installation/upgrade_464.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ and it is recommended that you merge the updated versions with your application:
4444
Config
4545
------
4646

47-
- @TODO
47+
- app/Config/Database.php
48+
- Added the ``synchronous`` key for ``Config\Database::$tests``.
4849

4950
All Changes
5051
===========

0 commit comments

Comments
 (0)