I try to rename a column in a migration:
\Schema::table('invitations', function (Blueprint $table) {
$table->renameColumn('service_id', 'project_id');
});
Running this result in an error:
Unknown database type jsonb requested, Doctrine\DBAL\Platforms\PostgreSQL92Platform may not support it.
My table as a jsonb
column, I think it's the problem but I don't know why this problem occurs (because service_id
is not a jsonb
column).
How can I rename my column? (and why does it not work with what I wrote?)