Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove DB files after tests #9192

Open
wants to merge 1 commit into
base: 4.6
Choose a base branch
from

Conversation

neznaika0
Copy link
Contributor

Description
After all the tests, the database files remain. They should be deleted.

$ tree -L 1  --dirsfirst
.
├── cache
├── debugbar
├── logs
├── session
├── uploads
├── database.db
├── index.html
└── test_com.sitedb.web

6 directories, 3 files

@paulbalandan
Copy link
Member

I have tried before cleaning the db files after the tests but unfortunately there are hidden dependencies among tests that's why tests are failing.

@neznaika0
Copy link
Contributor Author

Like what? I have cleared the files and there are no errors

@paulbalandan
Copy link
Member

sqlite tests are failing in github actions

@neznaika0
Copy link
Contributor Author

neznaika0 commented Sep 14, 2024

Oh, I didn't look. Everything worked on the local PC. Now I will try to find the reason

EDIT: I tried deleting after the class test. But it seems tearDownAfterClass() is not called. Even exit; doesn't work inside.

It is unclear why a new connection was needed? In addition, it is shared = true

 // Checks if tableExists() works.
$config             = config(Database::class)->{$this->DBGroup};
$config['database'] = $dbName;
$db                 = db_connect($config);
$result             = $db->tableExists('not_exist');

@kenjis kenjis added the testing Pull requests that changes tests only label Sep 15, 2024
@kenjis
Copy link
Member

kenjis commented Sep 15, 2024

After all the tests, the database files remain. They should be deleted.

Why?

@neznaika0
Copy link
Contributor Author

Now it is clear that the tests are incorrectly configured.
I think that after the tests there should be an initial state of the project.

@kenjis
Copy link
Member

kenjis commented Sep 17, 2024

It is unclear why a new connection was needed? In addition, it is shared = true

Because we need to connect to the new database that has been created.

@kenjis
Copy link
Member

kenjis commented Sep 17, 2024

I don't know why this error happens in GitHub Actions.

1) CodeIgniter\Database\Live\SelectTest::testSelectAllByDefault
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/BaseConnection.php:692
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/Forge.php:663
/home/runner/work/CodeIgniter4/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/MigrationRunner.php:867
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/MigrationRunner.php:290
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/BaseConnection.php:738
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/BaseConnection.php:652
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/Forge.php:663
/home/runner/work/CodeIgniter4/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/MigrationRunner.php:867
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/MigrationRunner.php:290
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/BaseConnection.php:738
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/BaseConnection.php:652
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/Forge.php:663
/home/runner/work/CodeIgniter4/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/MigrationRunner.php:867
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Database/MigrationRunner.php:290
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/home/runner/work/CodeIgniter4/CodeIgniter4/system/Test/CIUnitTestCase.php:251

...

@kenjis
Copy link
Member

kenjis commented Sep 17, 2024

DatabaseLive tests pass on my mac.

(fix-delete-db-after-tests $)$ vendor/bin/phpunit --group DatabaseLive
PHPUnit 11.3.5 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.20
Configuration: /Users/kenji/work/codeigniter/official/CodeIgniter4/phpunit.xml

..S......................................................................................SSS...S...........S..... 113 / 770 ( 14%)
...............................................................................................SSSSSSSSSSSSSSSSSS 226 / 770 ( 29%)
SSSSSSSSSSSSSSSS....S............................................................................................ 339 / 770 ( 44%)
S................................................................................................................ 452 / 770 ( 58%)
................................................................................................................. 565 / 770 ( 73%)
.....................................................SS.......................................................... 678 / 770 ( 88%)
SSSSSSSSSSSS................................................................................                      770 / 770 (100%)

Time: 00:44.455, Memory: 82.50 MB

OK, but some tests were skipped!
Tests: 770, Assertions: 1481, Skipped: 56.

@neznaika0
Copy link
Contributor Author

neznaika0 commented Sep 17, 2024

Mine are passing too. Perhaps because of the different work :memory: type. When the database is in RAM

What happens if you execute vendor/bin/phpunit --order-by=random
The tests will turn out to be dependent. Although it is recommended not to write this way

@kenjis
Copy link
Member

kenjis commented Sep 17, 2024

Mine are passing too. Perhaps because of the different work :memory: type. When the database is in RAM

I'm using :memory:.

$ ./spark config:check Database

CodeIgniter v4.5.5 Command Line Tool - Server Time: 2024-09-17 04:47:18 UTC+00:00

Config\Database#36 (4) (
    public 'filesPath' -> string (65) "/Users/kenji/work/codeigniter/official/CodeIgniter4/app/Database/"
    public 'defaultGroup' -> string (7) "default"
    public 'default' -> array (20) [
        'DSN' => string (0) ""
        'hostname' => string (9) "localhost"
        'username' => string (4) "root"
        'password' => string (0) ""
        'database' => string (3) "ci4"
        'DBDriver' => string (6) "SQLSRV"
        'DBPrefix' => string (0) ""
        'pConnect' => boolean false
        'DBDebug' => boolean true
        'charset' => string (7) "utf8mb4"
        'DBCollat' => string (18) "utf8mb4_general_ci"
        'swapPre' => string (0) ""
        'encrypt' => boolean false
        'compress' => boolean false
        'strictOn' => boolean false
        'failover' => array (0) []
        'port' => integer 3306
        'numberNative' => boolean false
        'foundRows' => boolean false
        'dateFormat' => array (3) [
            'date' => string (5) "Y-m-d"
            'datetime' => string (11) "Y-m-d H:i:s"
            'time' => string (5) "H:i:s"
        ]
    ]
    public 'tests' -> array (20) [
        'DSN' => string (0) ""
        'hostname' => string (9) "127.0.0.1"
        'username' => string (0) ""
        'password' => string (0) ""
        'database' => string (8) ":memory:"
        'DBDriver' => string (7) "SQLite3"
        'DBPrefix' => string (3) "db_"
        'pConnect' => boolean false
        'DBDebug' => boolean true
        'charset' => string (4) "utf8"
        'DBCollat' => string (0) ""
        'swapPre' => string (0) ""
        'encrypt' => boolean false
        'compress' => boolean false
        'strictOn' => boolean false
        'failover' => array (0) []
        'port' => integer 3306
        'foreignKeys' => boolean true
        'busyTimeout' => integer 1000
        'dateFormat' => array (3) [
            'date' => string (5) "Y-m-d"
            'datetime' => string (11) "Y-m-d H:i:s"
            'time' => string (5) "H:i:s"
        ]
    ]
)

Config Caching: Disabled

@kenjis
Copy link
Member

kenjis commented Sep 17, 2024

What happens if you execute vendor/bin/phpunit --order-by=random

It surely fails. Because we have test code that depend on the test method order.

@kenjis
Copy link
Member

kenjis commented Sep 17, 2024

Ah, we don't use :memory: database in GitHub Actions:

'database' => 'database.db',

@kenjis
Copy link
Member

kenjis commented Sep 17, 2024

--- a/app/Config/Database.php
+++ b/app/Config/Database.php
@@ -166,7 +166,7 @@ class Database extends Config
         'hostname'    => '127.0.0.1',
         'username'    => '',
         'password'    => '',
-        'database'    => ':memory:',
+        'database'    => 'database.db',
         'DBDriver'    => 'SQLite3',
         'DBPrefix'    => 'db_',  // Needed to ensure we're working correctly with prefixes live. DO NOT REMOVE FOR CI DEVS
         'pConnect'    => false,
(fix-delete-db-after-tests *$)$ vendor/bin/phpunit --group DatabaseLive 
PHPUnit 11.3.5 by Sebastian Bergmann and contributors.

Runtime:       PHP 8.2.20
Configuration: /Users/kenji/work/codeigniter/official/CodeIgniter4/phpunit.xml

..S......................................................................................SSS...S...........S..... 113 / 770 ( 14%)
...............................................................................................SSSSSSSSSSSSSSSSSS 226 / 770 ( 29%)
SSSSSSSSSSSSSSSS....S......................EEEEEEEEEEEEEEEEE..................................................... 339 / 770 ( 44%)
S................................................................................................................ 452 / 770 ( 58%)
................................................................................................................. 565 / 770 ( 73%)
.....................................................SS.......................................................... 678 / 770 ( 88%)
SSSSSSSSSSSS................................................................................                      770 / 770 (100%)

Time: 01:23.384, Memory: 82.50 MB

There were 17 errors:

1) CodeIgniter\Database\Live\SelectTest::testSelectAllByDefault
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

2) CodeIgniter\Database\Live\SelectTest::testSelectSingleColumn
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

3) CodeIgniter\Database\Live\SelectTest::testSelectMultipleColumns
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

4) CodeIgniter\Database\Live\SelectTest::testSelectMax
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

5) CodeIgniter\Database\Live\SelectTest::testSelectMaxWithAlias
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

6) CodeIgniter\Database\Live\SelectTest::testSelectMin
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

7) CodeIgniter\Database\Live\SelectTest::testSelectMinWithAlias
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

8) CodeIgniter\Database\Live\SelectTest::testSelectAvg
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

9) CodeIgniter\Database\Live\SelectTest::testSelectAvgWithAlias
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

10) CodeIgniter\Database\Live\SelectTest::testSelectSum
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

11) CodeIgniter\Database\Live\SelectTest::testSelectSumWithAlias
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

12) CodeIgniter\Database\Live\SelectTest::testSelectCount
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

13) CodeIgniter\Database\Live\SelectTest::testSelectCountWithAlias
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

14) CodeIgniter\Database\Live\SelectTest::testSelectDistinctWorkTogether
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

15) CodeIgniter\Database\Live\SelectTest::testSelectDistinctCanBeTurnedOff
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

16) CodeIgniter\Database\Live\SelectTest::testSelectWithMultipleWheresOnSameColumn
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

17) CodeIgniter\Database\Live\SelectTest::testSelectWithMultipleWheresOnSameColumnAgain
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:692
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
CodeIgniter\Database\Exceptions\DatabaseException: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:164
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

Caused by
Exception: attempt to write a readonly database

/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/SQLite3/Connection.php:158
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:738
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/BaseConnection.php:652
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/Forge.php:663
/Users/kenji/work/codeigniter/official/CodeIgniter4/tests/_support/Database/Migrations/20160428212500_Create_test_tables.php:174
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:867
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Database/MigrationRunner.php:290
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:147
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:114
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/DatabaseTestTrait.php:60
/Users/kenji/work/codeigniter/official/CodeIgniter4/system/Test/CIUnitTestCase.php:251

ERRORS!
Tests: 770, Assertions: 1452, Errors: 17, Skipped: 56.

@neznaika0
Copy link
Contributor Author

At this stage, only test_com.sitedb.web can be deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Pull requests that changes tests only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants