PHP Version
7.4
CodeIgniter4 Version
4.3.4
Shield Version
develop
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MariaDB 10.6.13
Did you customize Shield?
no
What happened?
If deploy to shared hosting and MySQL default_storage_engine is set to MyISAM there is no possibility to change it to InnoDB, spark migrate --all return Exceptions
CodeIgniter v4.3.4 Command Line Tool - Server Time: 2023-05-14 15:46:19 UTC+00:00
Running all new migrations...
[CodeIgniter\Database\Exceptions\DatabaseException]
Specified key was too long; max key length is 1000 bytes
at SYSTEMPATH/Database/BaseConnection.php:646
Steps to Reproduce
run spark migrate --all return on MySQL server configured with default_storage_engine=MyISAM
Expected Output
Migrations complete without error.
Anything else?
It is a good to have ['ENGINE' => 'InnoDB'] set as an attribute in createTable methods for tables that uses Foreign key or to all methods.