I found a bug trying to change collation of a field in my database:
Capsule::schema()->table('test', function ($table) {
$table->string('field1')->collation('utf8_unicode_ci')->change();
$table->string('field2')->collation('utf8_unicode_ci')->change();
$table->string('field3')->collation('utf8_unicode_ci')->change();
$table->string('field4')->collation('utf8_unicode_ci')->change();
});
RuntimeException: Changing columns for table "test" requires Doctrine DBAL; install "doctrine/dbal". in /var/www/whmcs/vendor/illuminate/database/Schema/Grammars/ChangeColumn.php:30
Stack trace:
#0 /var/www/whmcs/vendor/illuminate/database/Schema/Grammars/Grammar.php(55): Illuminate\Database\Schema\Grammars\ChangeColumn::compile()
#1 /var/www/whmcs/vendor/illuminate/database/Schema/Blueprint.php(128): Illuminate\Database\Schema\Grammars\Grammar->compileChange()
#2 /var/www/whmcs/vendor/illuminate/database/Schema/Blueprint.php(101): Illuminate\Database\Schema\Blueprint->toSql()
#3 /var/www/whmcs/vendor/illuminate/database/Schema/Builder.php(290): Illuminate\Database\Schema\Blueprint->build()
#4 /var/www/whmcs/vendor/illuminate/database/Schema/Builder.php(151): Illuminate\Database\Schema\Builder->build()
#5 /var/www/whmcs/modules/addons/test/lib/Helpers/Migrations.php(242): Illuminate\Database\Schema\Builder->table()
#6 /var/www/whmcs/modules/addons/test/lib/Helpers/Migrations.php(156): WHMCS\Module\Addon\Test\Helpers\Migrations::upgrade20()
#7 /var/www/whmcs/modules/addons/test/lib/App.php(467): WHMCS\Module\Addon\Test\Helpers\Migrations::upgrade()
#8 /var/www/whmcs/modules/addons/test/test.php(125): WHMCS\Module\Addon\Test\App->upgrade()
#9 [internal function]: test()
#10 /var/www/whmcs/admin/addonmodules.php(0): call_user_func()
#11 {main}