ERROR - 2024-09-03 11:20:48 --> mysqli_sql_exception: Can't create table `kwpaydb`.`company_info` (errno: 150 "Foreign key constraint is incorrectly formed") in C:\Projects\webroot\www\kwpayroll\system\Database\MySQLi\Connection.php:306
Stack trace:
#0 C:\Projects\webroot\www\kwpayroll\system\Database\MySQLi\Connection.php(306): mysqli->query('CREATE TABLE `c...', 0)
#1 C:\Projects\webroot\www\kwpayroll\system\Database\BaseConnection.php(693): CodeIgniter\Database\MySQLi\Connection->execute('CREATE TABLE `c...')
#2 C:\Projects\webroot\www\kwpayroll\system\Database\BaseConnection.php(607): CodeIgniter\Database\BaseConnection->simpleQuery('CREATE TABLE `c...')
#3 C:\Projects\webroot\www\kwpayroll\system\Database\Forge.php(555): CodeIgniter\Database\BaseConnection->query('CREATE TABLE `c...')
#4 C:\Projects\webroot\www\kwpayroll\app\Database\Migrations\2024-09-02-105229_CreateCompanyInfo.php(84): CodeIgniter\Database\Forge->createTable('company_info')
#5 C:\Projects\webroot\www\kwpayroll\system\Database\MigrationRunner.php(865): App\Database\Migrations\CreateCompanyInfo->up()
#6 C:\Projects\webroot\www\kwpayroll\system\Database\MigrationRunner.php(181): CodeIgniter\Database\MigrationRunner->migrate('up', Object(stdClass))
#7 C:\Projects\webroot\www\kwpayroll\system\Commands\Database\Migrate.php(84): CodeIgniter\Database\MigrationRunner->latest(NULL)
#8 C:\Projects\webroot\www\kwpayroll\system\CLI\Commands.php(65): CodeIgniter\Commands\Database\Migrate->run(Array)
#9 C:\Projects\webroot\www\kwpayroll\system\CLI\Console.php(46): CodeIgniter\CLI\Commands->run('migrate', Array)
#10 C:\Projects\webroot\www\kwpayroll\spark(102): CodeIgniter\CLI\Console->run()
#11 {main}
