To anyone with this issue.
It is because you are migrating tables as MyISAM instead of InnoDB. If you check your local database vs the remote missed migrations you did, I bet you the local is creating InnoDB tables and the remote one MyISAM.
All you have to do is go to the config/database.php file and add this on your remote and local copy:
'mysql' => [
'driver' => 'mysql',
'url' => env('DATABASE_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'forge'),
'username' => env('DB_USERNAME', 'forge'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => 'InnoDB', <----------this one
'options' => extension_loaded('pdo_mysql') ? array_filter([
PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
Make sure you run these commands remotely after the change:
php artisan cache:clear
php artisan config:clear
php artisan config:cache