My migration looks like this, but it doesn't seem to do anything, or even throw any errors:
public function up()
{
Schema::table('my_table', function (Blueprint $table) {
$table->unsignedInteger('id')
->first()
->change();
});
}
I know you can do it when creating a column, like this:
$table->unsignedInteger('id')
->first();
It'd definitely be possible with a raw MySQL statement, but perhaps Laravel migrations simply doesn't support moving a column after it's been created?
FYI, using PHP 7.1, Laravel 5.7, and MariaDB/MySQL 5.5