Welcome Guest, Not a member yet? Register   Sign In
Upon running php spark migrate --all, I get an error
#1

Upon running "php spark migrate --all", I get the following error;

CodeIgniter v4.1.4 Command Line Tool - Server Time: 2021-12-17 22:10:43 UTC-06:00

Running all new migrations...

[CodeIgniter\Database\Exceptions\DatabaseException]

Unable to connect to the database.
Main connection [SQLite3]: Class 'SQLite3' not found

My .env is set up to use
database.default.hostname = localhost
database.default.database = myDatabase
database.default.username = ci4_app
database.default.password = password
database.default.DBDriver = MySQLi

Does spark require only SQLite3? How would that be setup? Thanks.
Reply
#2

Remove this migration file for sample test code.
https://github.com/codeigniter4/appstart...ration.php
Reply




Theme © iAndrew 2016 - Forum software by © MyBB