php - Rename column name using laravel migration using doctrine/dbal gives error -


im trying rename database column in localhost can later in development , production

im using laravel 5 , installed doctrine dbal.

code of migration:

    $table->renamecolumn('puesto', 'aux'); 

after run php artisan migrate tells me

[doctrine\dbal\dbalexception]                                                                          unknown database type json requested, doctrine\dbal\platforms\postgresqlplatform may not support it.  

the column im trying rename isnt json, although there json column in table, in fact 1 called 'alianzas'. question is, how can rename columns migration , not manually in database.

it looks laravel suggests install.

you can install with:

composer require doctrine/dbal